Skip to content

Instantly share code, notes, and snippets.

@pekspro
Last active February 14, 2024 07:37
Show Gist options
  • Save pekspro/74682e4a4726840bb4330e35f7b502b9 to your computer and use it in GitHub Desktop.
Save pekspro/74682e4a4726840bb4330e35f7b502b9 to your computer and use it in GitHub Desktop.
Net7toNet8.ps1
# This script updates all .csproj-files from .NET 7 to .NET 8. It updates TargetFramework and
# all Microsoft- and System-packages.
# Put this script in the folder that contains the .csproj-files and then run it. All .csproj-files,
# including in subdirectories, will be converted.
$configFiles = Get-ChildItem . *.csproj -rec
foreach ($file in $configFiles)
{
$content = (Get-Content $file.PSPath)
if(!($content -match "net7.0"))
{
Write-Warning "Skipping $($file.FullName)"
continue;
}
Write-Output "Updating $($file.FullName)"
$content | `
Foreach-Object { $_ `
-replace "net7.0", "net8.0" `
-replace '(Include="Microsoft.AspNetCore.App.Ref"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-arm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-musl-arm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-musl-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-musl-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.osx-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.osx-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.win-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.win-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.win-x86"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.Certificate"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.Facebook"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.Google"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.JwtBearer"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.Negotiate"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.OpenIdConnect"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.Twitter"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.WsFederation"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Authorization"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.AzureAppServices.HostingStartup"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.AzureAppServicesIntegration"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.Analyzers"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.Authorization"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.CustomElements"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.Forms"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.QuickGrid"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.QuickGrid.EntityFrameworkAdapter"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.Web"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebAssembly"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebAssembly.Server"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebView"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebView.Maui"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebView.Maui.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebView.WindowsForms"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebView.Wpf"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.AspNetCore.ConcurrencyLimiter"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Connections.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Cryptography.Internal"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Cryptography.KeyDerivation"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.DataProtection"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.DataProtection.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.DataProtection.Extensions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Grpc.JsonTranscoding"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.HeaderPropagation"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Hosting.WindowsServices"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Http.Connections.Client"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Http.Connections.Common"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Identity.UI"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.JsonPatch"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Metadata"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.MiddlewareAnalysis"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Mvc.Formatters.Xml.Extensions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Mvc.Testing"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.OpenApi"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.Owin"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Client"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Client.Core"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Common"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Protocols.Json"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Specification.Tests"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.StackExchangeRedis"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.SpaProxy"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.SpaServices.Extensions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.TestHost"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.AspNetCore.WebUtilities"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Authentication.WebAssembly.Msal"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Bcl.AsyncInterfaces"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Bcl.Numerics"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Bcl.TimeProvider"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.1${3}' `
-replace '(Include="Microsoft.Build.Tasks.Git"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.CodeAnalysis.NetAnalyzers"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.CrmSdk.CoreAssemblies.Async"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.4${3}' `
-replace '(Include="Microsoft.Data.Sqlite"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Data.Sqlite.Core"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.dotnet-openapi"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.DotNet.Common.ItemTemplates"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.200${3}' `
-replace '(Include="Microsoft.DotNet.ILCompiler"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.DotNet.Mage"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.DotNet.Scaffolding.Shared"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.1${3}' `
-replace '(Include="Microsoft.DotNet.Web.Client.ItemTemplates"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Analyzers"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Cosmos"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Design"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.InMemory"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Proxies"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Relational"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Relational.Specification.Tests"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Specification.Tests"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Sqlite"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Sqlite.Core"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.SqlServer"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.SqlServer.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.SqlServer.HierarchyId"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Tools"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.ApiDescription.Client"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.ApiDescription.Server"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Caching.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Caching.Memory"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Caching.SqlServer"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Caching.StackExchangeRedis"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Configuration"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.Binder"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.1${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.CommandLine"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.EnvironmentVariables"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.FileExtensions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.Ini"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.Json"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.KeyPerFile"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.UserSecrets"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.Xml"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.DependencyInjection"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.DependencyInjection.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.DependencyInjection.Specification.Tests"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.DependencyModel"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Diagnostics"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Diagnostics.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Diagnostics.HealthChecks"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Features"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.FileProviders.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.FileProviders.Composite"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.FileProviders.Embedded"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.FileProviders.Physical"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.FileSystemGlobbing"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Hosting"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Hosting.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Hosting.Systemd"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Hosting.WindowsServices"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Http"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Http.Polly"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Identity.Core"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Identity.Stores"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Localization"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Localization.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Logging"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.AzureAppServices"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Logging.Configuration"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.Console"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.Debug"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.EventLog"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.EventSource"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.TraceSource"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.ObjectPool"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Options"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Extensions.Options.ConfigurationExtensions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Options.DataAnnotations"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Primitives"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Extensions.WebEncoders"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.ILVerification"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.JSInterop"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.JSInterop.WebAssembly"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.Maui.Controls"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Controls.Build.Tasks"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Controls.Build.Tasks.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.Maui.Controls.Compatibility"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Controls.Compatibility.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.Maui.Controls.Core"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Controls.Core.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.Maui.Controls.Foldable"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Controls.Maps"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Controls.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.Maui.Controls.Xaml"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Controls.Xaml.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.Maui.Core"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Core.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.Maui.Essentials"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Essentials.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.Maui.Graphics"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Graphics.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.Maui.Graphics.Skia"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Graphics.Text.Markdig"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Graphics.Win2D.WinUI.Desktop"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Graphics.Win2D.WinUI.Desktop.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.Maui.Maps"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Resizetizer"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Resizetizer.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.Maui.Sdk"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Sdk.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.Maui.Templates.net8"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.7+0-sha.d4bb66f8f7-azdo.9074349${3}' `
-replace '(Include="Microsoft.Maui.Templates.net8.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.NET.Build.Containers"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.200${3}' `
-replace '(Include="Microsoft.Net.Http.Headers"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.ILLink.Tasks"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.Emscripten.3.1.34.Cache.linux-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.Emscripten.3.1.34.Cache.win-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.Emscripten.3.1.34.Cache.win-x64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.Emscripten.3.1.34.Node.linux-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.linux-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.win-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.win-x64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.MonoAOTCompiler.Task"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.MonoAOTCompiler.Task.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.MonoTargets.Sdk"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.MonoTargets.Sdk.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.WebAssembly.Sdk"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.WebAssembly.Sdk.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Runtime.WebAssembly.Templates"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Sdk.IL"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.NET.Sdk.Maui.Manifest-8.0.100"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6+1-sha.87f59a86d4-azdo.8922564${3}' `
-replace '(Include="Microsoft.NET.Sdk.Maui.Manifest-8.0.100.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.6${3}' `
-replace '(Include="Microsoft.NET.Sdk.WebAssembly.Pack"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Emscripten.net6.Manifest-8.0.100"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Emscripten.net6.Manifest-8.0.100.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Emscripten.net7.Manifest-8.0.100"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Emscripten.net7.Manifest-8.0.100.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Mono.ToolChain.Current.Manifest-8.0.100"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Mono.ToolChain.Current.Manifest-8.0.100.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Mono.ToolChain.net6.Manifest-8.0.100"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Mono.ToolChain.net6.Manifest-8.0.100.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Mono.ToolChain.net7.Manifest-8.0.100"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NET.Workload.Mono.ToolChain.net7.Manifest-8.0.100.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.linux-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.linux-musl-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.linux-musl-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.linux-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.osx-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.osx-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.win-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.win-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-arm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-musl-arm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-musl-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-musl-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.osx-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.osx-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.win-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.win-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.win-x86"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Ref"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x86"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.browser-wasm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-arm64.Cross.ios-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-arm64.Cross.iossimulator-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-arm64.Cross.iossimulator-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x86"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.browser-wasm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvos-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvossimulator-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvossimulator-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-arm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-musl-arm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-musl-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-musl-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-arm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-arm.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-arm.Msi.x86"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-arm64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-x64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-x86"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-x86.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.browser-wasm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.browser-wasm.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.ios-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.ios-arm64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.iossimulator-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.iossimulator-arm64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.linux-arm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.linux-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.linux-musl-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.linux-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.AOT.linux-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.AOT.linux-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.AOT.osx-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.linux-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.linux-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.osx-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.multithread.browser-wasm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.osx-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvos-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvos-arm64.Msi.arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvos-arm64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvossimulator-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvossimulator-arm64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvossimulator-arm64.Msi.x86"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvossimulator-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvossimulator-x64.Msi.x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.win-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.win-x86"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.osx-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.osx-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.win-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.win-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.win-x86"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.DotNetAppHost"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.DotNetHost"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.DotNetHostPolicy"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.DotNetHostResolver"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.NETCore.ILAsm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.NETCore.ILDAsm"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Analyzers"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.BroadcastChannel"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Client"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Clustering.AdoNet"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Clustering.AzureStorage"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Clustering.DynamoDB"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Clustering.Redis"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.CodeGenerator"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Connections.Security"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Core"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Core.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.EventSourcing"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.GrainDirectory.Redis"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Hosting.AzureCloudServices"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Hosting.Kubernetes"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Persistence.AdoNet"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Persistence.AzureStorage"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Persistence.DynamoDB"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Persistence.Memory"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Persistence.Redis"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Reminders"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Reminders.AdoNet"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Reminders.AzureStorage"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Reminders.DynamoDB"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Runtime"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Sdk"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Serialization"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Serialization.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Serialization.FSharp"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Serialization.NewtonsoftJson"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Serialization.Protobuf"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Serialization.SystemTextJson"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Server"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Streaming"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Streaming.AzureStorage"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Streaming.EventHubs"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Streaming.SQS"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.TestingHost"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Transactions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Transactions.AzureStorage"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Transactions.TestKit.Base"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Transactions.TestKit.xUnit"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.ServiceFabric.Diagnostics.Internal"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.1000${3}' `
-replace '(Include="Microsoft.SourceLink.AzureDevOpsServer.Git"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.SourceLink.AzureRepos.Git"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.SourceLink.Bitbucket.Git"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.SourceLink.Common"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.SourceLink.Gitea"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.SourceLink.GitHub"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.SourceLink.GitLab"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.SourceLink.GitWeb"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.SourceLink.Tools"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.TemplateEngine.Abstractions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.102${3}' `
-replace '(Include="Microsoft.TemplateEngine.Core"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.102${3}' `
-replace '(Include="Microsoft.TemplateEngine.Core.Contracts"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.102${3}' `
-replace '(Include="Microsoft.TemplateEngine.Edge"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.102${3}' `
-replace '(Include="Microsoft.TemplateEngine.IDE"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.102${3}' `
-replace '(Include="Microsoft.TemplateEngine.Orchestrator.RunnableProjects"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.102${3}' `
-replace '(Include="Microsoft.TemplateEngine.Utils"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.102${3}' `
-replace '(Include="Microsoft.TemplateSearch.Common"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.102${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.1${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration.Core"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.1${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration.Design"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.1${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.1${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration.Templating"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.1${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration.Utils"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.1${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGenerators.Mvc"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.1${3}' `
-replace '(Include="Microsoft.Win32.Registry.AccessControl"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Win32.SystemEvents"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="Microsoft.Windows.Compatibility"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.WindowsDesktop.App.Ref"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.WindowsDesktop.App.Runtime.win-arm64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.WindowsDesktop.App.Runtime.win-x64"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.WindowsDesktop.App.Runtime.win-x86"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="Microsoft.XmlSerializer.Generator"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.CodeDom"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Collections.Immutable"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.ComponentModel.Composition"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.ComponentModel.Composition.Registration"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Composition"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Composition.AttributedModel"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Composition.Convention"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Composition.Hosting"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Composition.Runtime"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Composition.TypedParts"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Configuration.ConfigurationManager"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Data.Odbc"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Data.OleDb"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Diagnostics.DiagnosticSource"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Diagnostics.EventLog"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Diagnostics.PerformanceCounter"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.DirectoryServices"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.DirectoryServices.AccountManagement"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.DirectoryServices.Protocols"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.DisposableObject"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Drawing.Common"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="System.Formats.Asn1"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Formats.Cbor"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.IO.Hashing"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.IO.Packaging"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.IO.Pipelines"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.IO.Ports"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Management"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Memory.Data"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Net.Http.Json"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Net.Http.WinHttpHandler"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Numerics.Tensors"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Reflection.Context"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Reflection.Metadata"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Reflection.MetadataLoadContext"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Resources.Extensions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Runtime.Caching"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Runtime.Serialization.Schema"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Security.Cryptography.Cose"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Security.Cryptography.Pkcs"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Security.Cryptography.ProtectedData"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Security.Cryptography.Xml"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Security.Permissions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.ServiceModel.Federation"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.ServiceModel.Http"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.ServiceModel.NetFramingBase"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.ServiceModel.NetNamedPipe"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.ServiceModel.NetTcp"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.ServiceModel.Primitives"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.ServiceModel.Syndication"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.ServiceModel.UnixDomainSocket"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.ServiceProcess.ServiceController"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Speech"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Text.Encoding.CodePages"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Text.Encodings.Web"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Text.Json"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.2${3}' `
-replace '(Include="System.Threading.AccessControl"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Threading.Channels"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Threading.RateLimiting"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Threading.Tasks.Dataflow"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Web.Services.Description"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
-replace '(Include="System.Windows.Extensions"\s+Version=")(7\.[0-9\.]*)(")', '${1}8.0.0${3}' `
} | Set-Content $file.PSPath -Encoding UTF8
}
# The large replace list could be generated with the following code. For some reason
# Find-Package could return different results each time so we makes several request as a
# workaround. This is a bit slow.
# $latestPackages = @()
# 1..10 | ForEach-Object { $latestPackages += Find-Package -Source "nuget.org" -Name Microsoft.* }
# 1..10 | ForEach-Object { $latestPackages += Find-Package -Source "nuget.org" -Name System.* }
# $latestPackages = $latestPackages | Where-Object { $_.Version -Match "^8.0" } | Sort-Object { $_.Name } -Unique
# $latestPackages | `
# ForEach-Object { Write-Output `#
# " -replace '(Include=""$($_.Name)""\s+Version="")(7\.[0-9\.]*)("")', '`${1}$($_.Version)`${3}' ``"
# ` } | Set-Clipboard
# This script downgrades all .csproj-files from .NET 8 to .NET 7. It updates TargetFramework and
# all Microsoft- and System-packages.
# Put this script in the folder that contains the .csproj-files and then run it. All .csproj-files,
# including in subdirectories, will be converted.
$configFiles = Get-ChildItem . *.csproj -rec
foreach ($file in $configFiles)
{
$content = (Get-Content $file.PSPath)
if(!($content -match "net8.0"))
{
Write-Warning "Skipping $($file.FullName)"
continue;
}
Write-Output "Updating $($file.FullName)"
$content | `
Foreach-Object { $_ `
-replace "net8.0", "net7.0" `
-replace '(Include="Microsoft.AspNetCore.App.Ref"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-arm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-musl-arm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-musl-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-musl-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.linux-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.osx-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.osx-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.win-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.win-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.App.Runtime.win-x86"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.Certificate"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.Facebook"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.Google"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.JwtBearer"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.Negotiate"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.OpenIdConnect"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.Twitter"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Authentication.WsFederation"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Authorization"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.AzureAppServices.HostingStartup"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.AzureAppServices.SiteExtension"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.AzureAppServicesIntegration"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.Analyzers"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.Authorization"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.CustomElements"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.Forms"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.Web"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebAssembly"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebAssembly.Server"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebView"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebView.Maui"\s+Version=")(8.0.7+0-sha.d4bb66f8f7-azdo.9074349)(")', '${1}7.0.101+4-sha.f97a31da6a-azdo.8632927${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebView.Maui.Msi.x64"\s+Version=")(8.0.6)(")', '${1}7.0.101${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebView.WindowsForms"\s+Version=")(8.0.7+0-sha.d4bb66f8f7-azdo.9074349)(")', '${1}7.0.101+4-sha.f97a31da6a-azdo.8632927${3}' `
-replace '(Include="Microsoft.AspNetCore.Components.WebView.Wpf"\s+Version=")(8.0.7+0-sha.d4bb66f8f7-azdo.9074349)(")', '${1}7.0.101+4-sha.f97a31da6a-azdo.8632927${3}' `
-replace '(Include="Microsoft.AspNetCore.ConcurrencyLimiter"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Connections.Abstractions"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Cryptography.Internal"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Cryptography.KeyDerivation"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.DataProtection"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.DataProtection.Abstractions"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.DataProtection.Extensions"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Grpc.JsonTranscoding"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.HeaderPropagation"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Hosting.WindowsServices"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Http.Connections.Client"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Http.Connections.Common"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Identity.UI"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.JsonPatch"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Metadata"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.MiddlewareAnalysis"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Mvc.Formatters.Xml.Extensions"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Mvc.Testing"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.OpenApi"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.Owin"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Client"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Client.Core"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Common"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Protocols.Json"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.Specification.Tests"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.SignalR.StackExchangeRedis"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.SpaProxy"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.SpaServices.Extensions"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.AspNetCore.TestHost"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Authentication.WebAssembly.Msal"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Bcl.AsyncInterfaces"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.CodeAnalysis.NetAnalyzers"\s+Version=")(8.0.0)(")', '${1}7.0.4${3}' `
-replace '(Include="Microsoft.CrmSdk.CoreAssemblies.Async"\s+Version=")(8.0.4)(")', '${1}7.0.4${3}' `
-replace '(Include="Microsoft.Data.Sqlite"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Data.Sqlite.Core"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.dotnet-openapi"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.DotNet.Common.ItemTemplates"\s+Version=")(8.0.200)(")', '${1}7.0.406${3}' `
-replace '(Include="Microsoft.DotNet.ILCompiler"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.DotNet.Mage"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.DotNet.Scaffolding.Shared"\s+Version=")(8.0.1)(")', '${1}7.0.12${3}' `
-replace '(Include="Microsoft.DotNet.Web.Client.ItemTemplates"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Abstractions"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Analyzers"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Cosmos"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Design"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.InMemory"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Proxies"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Relational"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Relational.Specification.Tests"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Specification.Tests"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Sqlite"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Sqlite.Core"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.SqlServer"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.EntityFrameworkCore.Tools"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.ApiDescription.Client"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.ApiDescription.Server"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Caching.Abstractions"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Caching.Memory"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Caching.SqlServer"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Caching.StackExchangeRedis"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Configuration"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.Abstractions"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.Binder"\s+Version=")(8.0.1)(")', '${1}7.0.4${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.CommandLine"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.EnvironmentVariables"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.FileExtensions"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.Ini"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.Json"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.KeyPerFile"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.UserSecrets"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Configuration.Xml"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.DependencyInjection"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.DependencyInjection.Abstractions"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.DependencyInjection.Specification.Tests"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.DependencyModel"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Diagnostics.HealthChecks"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Features"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.FileProviders.Abstractions"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.FileProviders.Composite"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.FileProviders.Embedded"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.FileProviders.Physical"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.FileSystemGlobbing"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Hosting"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="Microsoft.Extensions.Hosting.Abstractions"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Hosting.Systemd"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Hosting.WindowsServices"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="Microsoft.Extensions.Http"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Http.Polly"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Identity.Core"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Identity.Stores"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Localization"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Localization.Abstractions"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Logging"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.Abstractions"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="Microsoft.Extensions.Logging.AzureAppServices"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Logging.Configuration"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.Console"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.Debug"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.EventLog"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.EventSource"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Logging.TraceSource"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.ObjectPool"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Extensions.Options"\s+Version=")(8.0.2)(")', '${1}7.0.1${3}' `
-replace '(Include="Microsoft.Extensions.Options.ConfigurationExtensions"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Options.DataAnnotations"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.Primitives"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Extensions.WebEncoders"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.ILVerification"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.JSInterop"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.JSInterop.WebAssembly"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.Maui.Controls.Foldable"\s+Version=")(8.0.7+0-sha.d4bb66f8f7-azdo.9074349)(")', '${1}7.0.101+4-sha.f97a31da6a-azdo.8632927${3}' `
-replace '(Include="Microsoft.Maui.Controls.Maps"\s+Version=")(8.0.7+0-sha.d4bb66f8f7-azdo.9074349)(")', '${1}7.0.101+4-sha.f97a31da6a-azdo.8632927${3}' `
-replace '(Include="Microsoft.Maui.Graphics"\s+Version=")(8.0.7+0-sha.d4bb66f8f7-azdo.9074349)(")', '${1}7.0.101+4-sha.f97a31da6a-azdo.8632927${3}' `
-replace '(Include="Microsoft.Maui.Graphics.Msi.x64"\s+Version=")(8.0.6)(")', '${1}7.0.101${3}' `
-replace '(Include="Microsoft.Maui.Graphics.Skia"\s+Version=")(8.0.7+0-sha.d4bb66f8f7-azdo.9074349)(")', '${1}7.0.101+4-sha.f97a31da6a-azdo.8632927${3}' `
-replace '(Include="Microsoft.Maui.Graphics.Text.Markdig"\s+Version=")(8.0.7+0-sha.d4bb66f8f7-azdo.9074349)(")', '${1}7.0.101+4-sha.f97a31da6a-azdo.8632927${3}' `
-replace '(Include="Microsoft.Maui.Graphics.Win2D.WinUI.Desktop"\s+Version=")(8.0.7+0-sha.d4bb66f8f7-azdo.9074349)(")', '${1}7.0.101+4-sha.f97a31da6a-azdo.8632927${3}' `
-replace '(Include="Microsoft.Maui.Graphics.Win2D.WinUI.Desktop.Msi.x64"\s+Version=")(8.0.6)(")', '${1}7.0.101${3}' `
-replace '(Include="Microsoft.Maui.Maps"\s+Version=")(8.0.7+0-sha.d4bb66f8f7-azdo.9074349)(")', '${1}7.0.101+4-sha.f97a31da6a-azdo.8632927${3}' `
-replace '(Include="Microsoft.Maui.Sdk"\s+Version=")(8.0.7+0-sha.d4bb66f8f7-azdo.9074349)(")', '${1}7.0.101+4-sha.f97a31da6a-azdo.8632927${3}' `
-replace '(Include="Microsoft.Maui.Sdk.Msi.x64"\s+Version=")(8.0.6)(")', '${1}7.0.101${3}' `
-replace '(Include="Microsoft.NET.Build.Containers"\s+Version=")(8.0.200)(")', '${1}7.0.406${3}' `
-replace '(Include="Microsoft.NET.Runtime.MonoAOTCompiler.Task"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NET.Runtime.MonoAOTCompiler.Task.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NET.Runtime.MonoTargets.Sdk"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NET.Runtime.MonoTargets.Sdk.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NET.Runtime.WebAssembly.Sdk"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NET.Runtime.WebAssembly.Sdk.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NET.Runtime.WebAssembly.Templates"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NET.Sdk.IL"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.linux-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.linux-musl-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.linux-musl-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.linux-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.osx-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.osx-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.win-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Crossgen2.win-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-arm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-musl-arm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-musl-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-musl-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.linux-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.osx-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.osx-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.win-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.win-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Host.win-x86"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Ref"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x86"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.browser-wasm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x86"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.browser-wasm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvos-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvossimulator-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvossimulator-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-arm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-musl-arm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-musl-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-musl-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.linux-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-arm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-arm.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-arm.Msi.x86"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-arm64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-x64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-x86"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.android-x86.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.browser-wasm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.browser-wasm.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.ios-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.ios-arm64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.iossimulator-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.iossimulator-arm64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.linux-arm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.linux-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.linux-musl-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.linux-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.AOT.linux-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.AOT.linux-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.AOT.osx-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.linux-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.linux-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.LLVM.osx-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.multithread.browser-wasm"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.osx-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvos-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvos-arm64.Msi.arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvos-arm64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvossimulator-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvossimulator-arm64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvossimulator-arm64.Msi.x86"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvossimulator-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.tvossimulator-x64.Msi.x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.win-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.Mono.win-x86"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.osx-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.osx-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.win-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.win-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.App.Runtime.win-x86"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.DotNetAppHost"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.DotNetHost"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.DotNetHostPolicy"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.DotNetHostResolver"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.NETCore.ILAsm"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.NETCore.ILDAsm"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Orleans.Analyzers"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.BroadcastChannel"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Client"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Clustering.AdoNet"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Clustering.AzureStorage"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Clustering.DynamoDB"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Clustering.Redis"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.CodeGenerator"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Connections.Security"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Core"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Core.Abstractions"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.EventSourcing"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.GrainDirectory.Redis"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Hosting.AzureCloudServices"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Hosting.Kubernetes"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Persistence.AdoNet"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Persistence.AzureStorage"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Persistence.DynamoDB"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Persistence.Memory"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Persistence.Redis"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Reminders"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Reminders.AdoNet"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Reminders.AzureStorage"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Reminders.DynamoDB"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Runtime"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Sdk"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Serialization"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Serialization.Abstractions"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Serialization.FSharp"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Serialization.NewtonsoftJson"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Serialization.Protobuf"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Serialization.SystemTextJson"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Server"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Streaming"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Streaming.AzureStorage"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Streaming.EventHubs"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Streaming.SQS"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.TestingHost"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Transactions"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Transactions.AzureStorage"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Transactions.TestKit.Base"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.Orleans.Transactions.TestKit.xUnit"\s+Version=")(8.0.0)(")', '${1}7.2.4${3}' `
-replace '(Include="Microsoft.ServiceFabric.Diagnostics.Internal"\s+Version=")(8.0.1000)(")', '${1}7.1.1541${3}' `
-replace '(Include="Microsoft.TemplateEngine.Abstractions"\s+Version=")(8.0.102)(")', '${1}7.0.406${3}' `
-replace '(Include="Microsoft.TemplateEngine.Core"\s+Version=")(8.0.102)(")', '${1}7.0.406${3}' `
-replace '(Include="Microsoft.TemplateEngine.Core.Contracts"\s+Version=")(8.0.102)(")', '${1}7.0.406${3}' `
-replace '(Include="Microsoft.TemplateEngine.Edge"\s+Version=")(8.0.102)(")', '${1}7.0.406${3}' `
-replace '(Include="Microsoft.TemplateEngine.IDE"\s+Version=")(8.0.102)(")', '${1}7.0.406${3}' `
-replace '(Include="Microsoft.TemplateEngine.Orchestrator.RunnableProjects"\s+Version=")(8.0.102)(")', '${1}7.0.406${3}' `
-replace '(Include="Microsoft.TemplateEngine.Utils"\s+Version=")(8.0.102)(")', '${1}7.0.406${3}' `
-replace '(Include="Microsoft.TemplateSearch.Common"\s+Version=")(8.0.102)(")', '${1}7.0.406${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration"\s+Version=")(8.0.1)(")', '${1}7.0.12${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration.Core"\s+Version=")(8.0.1)(")', '${1}7.0.12${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration.Design"\s+Version=")(8.0.1)(")', '${1}7.0.12${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore"\s+Version=")(8.0.1)(")', '${1}7.0.12${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration.Templating"\s+Version=")(8.0.1)(")', '${1}7.0.12${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGeneration.Utils"\s+Version=")(8.0.1)(")', '${1}7.0.12${3}' `
-replace '(Include="Microsoft.VisualStudio.Web.CodeGenerators.Mvc"\s+Version=")(8.0.1)(")', '${1}7.0.12${3}' `
-replace '(Include="Microsoft.Win32.Registry.AccessControl"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Win32.SystemEvents"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="Microsoft.Windows.Compatibility"\s+Version=")(8.0.2)(")', '${1}7.0.5${3}' `
-replace '(Include="Microsoft.WindowsDesktop.App.Ref"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.WindowsDesktop.App.Runtime.win-arm64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.WindowsDesktop.App.Runtime.win-x64"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.WindowsDesktop.App.Runtime.win-x86"\s+Version=")(8.0.2)(")', '${1}7.0.16${3}' `
-replace '(Include="Microsoft.XmlSerializer.Generator"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.CodeDom"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Collections.Immutable"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.ComponentModel.Composition"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.ComponentModel.Composition.Registration"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Composition"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Composition.AttributedModel"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Composition.Convention"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Composition.Hosting"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Composition.Runtime"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Composition.TypedParts"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Configuration.ConfigurationManager"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Data.Odbc"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Data.OleDb"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Diagnostics.DiagnosticSource"\s+Version=")(8.0.0)(")', '${1}7.0.2${3}' `
-replace '(Include="System.Diagnostics.EventLog"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Diagnostics.PerformanceCounter"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.DirectoryServices"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="System.DirectoryServices.AccountManagement"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="System.DirectoryServices.Protocols"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="System.Drawing.Common"\s+Version=")(8.0.2)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Formats.Asn1"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Formats.Cbor"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.IO.Hashing"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.IO.Packaging"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.IO.Pipelines"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.IO.Ports"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Management"\s+Version=")(8.0.0)(")', '${1}7.0.2${3}' `
-replace '(Include="System.Memory.Data"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Net.Http.Json"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="System.Net.Http.WinHttpHandler"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Reflection.Context"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Reflection.Metadata"\s+Version=")(8.0.0)(")', '${1}7.0.2${3}' `
-replace '(Include="System.Reflection.MetadataLoadContext"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Resources.Extensions"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Runtime.Caching"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Runtime.Serialization.Schema"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Security.Cryptography.Cose"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Security.Cryptography.Pkcs"\s+Version=")(8.0.0)(")', '${1}7.0.3${3}' `
-replace '(Include="System.Security.Cryptography.ProtectedData"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="System.Security.Cryptography.Xml"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="System.Security.Permissions"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.ServiceModel.Syndication"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.ServiceProcess.ServiceController"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="System.Speech"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Text.Encoding.CodePages"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Text.Encodings.Web"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Text.Json"\s+Version=")(8.0.2)(")', '${1}7.0.4${3}' `
-replace '(Include="System.Threading.AccessControl"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="System.Threading.Channels"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Threading.RateLimiting"\s+Version=")(8.0.0)(")', '${1}7.0.1${3}' `
-replace '(Include="System.Threading.Tasks.Dataflow"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
-replace '(Include="System.Windows.Extensions"\s+Version=")(8.0.0)(")', '${1}7.0.0${3}' `
} | Set-Content $file.PSPath -Encoding UTF8
}
# The large replace list could be generated with the following code. For some reason
# Find-Package could return different results each time so we makes several request as a
# workaround. This script will take a lot of time to run.
# $latestPackages = @()
# 1..10 | ForEach-Object { $latestPackages += Find-Package -Source "nuget.org" -Name Microsoft.* }
# 1..10 | ForEach-Object { $latestPackages += Find-Package -Source "nuget.org" -Name System.* }
# $latestPackages = $latestPackages | Where-Object { $_.Version -Match "^8.0" } | Sort-Object { $_.Name } -Unique
# $previousNetPackages = @()
# $latestPackages | `
# ForEach-Object { `
# $previousNetPackage = Find-Package -Source "nuget.org" -Name $_.Name -AllVersions -ErrorAction Ignore | Where-Object { $_.Version -Match "^7.*" } | Select-Object -First 1;
# if( $previousNetPackage -eq $null ) {
# Write-Output "$($_.Name) has no .NET7 version."
# }
# else {
# Write-Output "$($previousNetPackage.Name) $($previousNetPackage.Version)"
# $previousNetPackages += $previousNetPackage
# }
# ` }
# $previousNetPackageVersions = [ordered]@{}
# $previousNetPackages | Sort-Object { $_.Name } -Unique | ForEach-Object { $previousNetPackageVersions[$_.Name] =$_.Version }
# $latestPackages | `
# Where-Object { $previousNetPackageVersions.Contains($_.Name) } | `
# Sort-Object { $_.Name } -Unique | `
# ForEach-Object { `
# $previousNetPackage = $_;
# $net5version = $previousNetPackageVersions[$previousNetPackage.Name];
# Write-Output `
# " -replace '(Include=""$($previousNetPackage.Name)""\s+Version="")($($previousNetPackage.Version))("")', '`${1}$($net5version)`${3}' ``"
# ` } | Set-Clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment