diff --git a/nuget/helpers/lib/NuGetUpdater/Directory.Common.props b/nuget/helpers/lib/NuGetUpdater/Directory.Common.props index 7e6d11c8964..e74b76960ef 100644 --- a/nuget/helpers/lib/NuGetUpdater/Directory.Common.props +++ b/nuget/helpers/lib/NuGetUpdater/Directory.Common.props @@ -9,7 +9,7 @@ NuGetUpdater\NuGetUpdater.Core\FrameworkChecker\SupportedFrameworks.cs 2. Update tests as needed at `NuGetUpdater\NuGetUpdater.Core.Test\FrameworkChecker\CompatibilityCheckerFacts.cs` --> - net8.0 + net9.0 enable true $(MSBuildThisFileDirectory)artifacts diff --git a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.Update.cs b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.Update.cs index b2b981bf43b..03d5af843b5 100644 --- a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.Update.cs +++ b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.Update.cs @@ -353,7 +353,6 @@ await File.WriteAllTextAsync(projectPath, """ """); var executableName = Path.Join(Path.GetDirectoryName(GetType().Assembly.Location), "NuGetUpdater.Cli.dll"); var executableArgs = string.Join(" ", - [ executableName, "update", "--repo-root", @@ -366,8 +365,7 @@ await File.WriteAllTextAsync(projectPath, """ "13.0.1", "--previous-version", "7.0.1", - "--verbose" - ]); + "--verbose"); // verify base run var workingDirectory = tempDir.DirectoryPath; diff --git a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/MockNuGetPackage.cs b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/MockNuGetPackage.cs index 66a5c830f68..afaae3ecc1f 100644 --- a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/MockNuGetPackage.cs +++ b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/MockNuGetPackage.cs @@ -391,6 +391,7 @@ public static MockNuGetPackage WellKnownReferencePackage(string packageName, str WellKnownReferencePackage("Microsoft.AspNetCore.App", "net6.0"), WellKnownReferencePackage("Microsoft.AspNetCore.App", "net7.0"), WellKnownReferencePackage("Microsoft.AspNetCore.App", "net8.0"), + WellKnownReferencePackage("Microsoft.AspNetCore.App", "net9.0"), WellKnownReferencePackage("Microsoft.NETCore.App", "net6.0", [ ("data/FrameworkList.xml", Encoding.UTF8.GetBytes(""" @@ -412,9 +413,17 @@ public static MockNuGetPackage WellKnownReferencePackage(string packageName, str """)) ]), + WellKnownReferencePackage("Microsoft.NETCore.App", "net9.0", + [ + ("data/FrameworkList.xml", Encoding.UTF8.GetBytes(""" + + + """)) + ]), WellKnownReferencePackage("Microsoft.WindowsDesktop.App", "net6.0"), WellKnownReferencePackage("Microsoft.WindowsDesktop.App", "net7.0"), WellKnownReferencePackage("Microsoft.WindowsDesktop.App", "net8.0"), + WellKnownReferencePackage("Microsoft.WindowsDesktop.App", "net9.0"), ]; } } diff --git a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.Sdk.cs b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.Sdk.cs index 71972202c82..a5883731a4d 100644 --- a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.Sdk.cs +++ b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.Sdk.cs @@ -16,6 +16,7 @@ public class Sdk : UpdateWorkerTestBase [InlineData("net472")] [InlineData("net7.0")] [InlineData("net8.0")] + [InlineData("net9.0")] public async Task UpdateVersionAttribute_InProjectFile_ForPackageReferenceInclude(string tfm) { // update Some.Package from 9.0.1 to 13.0.1 diff --git a/nuget/helpers/lib/NuGetUpdater/global.json b/nuget/helpers/lib/NuGetUpdater/global.json index 04c1f50d7cc..32ee2b04c85 100644 --- a/nuget/helpers/lib/NuGetUpdater/global.json +++ b/nuget/helpers/lib/NuGetUpdater/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.401", + "version": "9.0.100-rc.1.24452.12", "rollForward": "latestMinor" } } \ No newline at end of file