diff --git a/Directory.Build.props b/Directory.Build.props index c0c5f79ab5..901c57c7d7 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -9,6 +9,7 @@ $(NoWarn);CS8714;CS8765;CS8600;CS8601;CS8602;CS8603;CS8604 MIT 10.0 + net7.0 diff --git a/global.json b/global.json index 1c6fd2686c..f5bec6115a 100644 --- a/global.json +++ b/global.json @@ -1,12 +1,13 @@ { "tools": { - "dotnet": "6.0.100", + "dotnet": "7.0.100-preview.6.22352.1", "runtimes": { "dotnet": [ - "5.0.10" + "5.0.17", + "6.0.7" ] }, - "xcopy-msbuild": "16.10.0-preview2" + "xcopy-msbuild": "17.1.0" }, "msbuild-sdks": { "Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.22168.2" diff --git a/src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_NamingConventionBinder_api_is_not_changed.approved.txt b/src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_NamingConventionBinder_api_is_not_changed.approved.txt index b509ade0c0..e8a6a52be0 100644 --- a/src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_NamingConventionBinder_api_is_not_changed.approved.txt +++ b/src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_NamingConventionBinder_api_is_not_changed.approved.txt @@ -3,20 +3,6 @@ public static System.Void AddModelBinder(this System.CommandLine.Binding.BindingContext bindingContext, ModelBinder binder) public static ModelBinder GetOrCreateModelBinder(this System.CommandLine.Binding.BindingContext bindingContext, System.CommandLine.Binding.IValueDescriptor valueDescriptor) public static class CommandHandler - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) - public static System.CommandLine.ICommandHandler Create(Func> action) public static System.CommandLine.ICommandHandler Create(System.Delegate delegate) public static System.CommandLine.ICommandHandler Create(Action action) public static System.CommandLine.ICommandHandler Create(Action action) @@ -68,6 +54,20 @@ public static System.CommandLine.ICommandHandler Create(Func action) public static System.CommandLine.ICommandHandler Create(Func> action) public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) + public static System.CommandLine.ICommandHandler Create(Func> action) public static System.CommandLine.ICommandHandler Create(System.Reflection.MethodInfo method, System.Object target = null) public class ConstructorDescriptor, IMethodDescriptor public System.Collections.Generic.IReadOnlyList ParameterDescriptors { get; } diff --git a/src/System.CommandLine.ApiCompatibility.Tests/System.CommandLine.ApiCompatibility.Tests.csproj b/src/System.CommandLine.ApiCompatibility.Tests/System.CommandLine.ApiCompatibility.Tests.csproj index 30bcd13942..4cc48fde3d 100644 --- a/src/System.CommandLine.ApiCompatibility.Tests/System.CommandLine.ApiCompatibility.Tests.csproj +++ b/src/System.CommandLine.ApiCompatibility.Tests/System.CommandLine.ApiCompatibility.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + $(TargetFrameworkForNETSDK) false diff --git a/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj b/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj index e54aabc422..185ba62a78 100644 --- a/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj +++ b/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj @@ -9,8 +9,8 @@ false - net461;net5.0;net6.0; - net5.0;net6.0; + net461;net5.0;net6.0;net7.0 + net5.0;net6.0;net7.0 False diff --git a/src/System.CommandLine.DragonFruit.Tests/System.CommandLine.DragonFruit.Tests.csproj b/src/System.CommandLine.DragonFruit.Tests/System.CommandLine.DragonFruit.Tests.csproj index 7eee0b3856..e504f7e86f 100644 --- a/src/System.CommandLine.DragonFruit.Tests/System.CommandLine.DragonFruit.Tests.csproj +++ b/src/System.CommandLine.DragonFruit.Tests/System.CommandLine.DragonFruit.Tests.csproj @@ -1,6 +1,6 @@  - net6.0 + $(TargetFrameworkForNETSDK) AutoGeneratedProgram true diff --git a/src/System.CommandLine.Generator.Tests/System.CommandLine.Generator.Tests.csproj b/src/System.CommandLine.Generator.Tests/System.CommandLine.Generator.Tests.csproj index a423eb1e7a..20f0f410d9 100644 --- a/src/System.CommandLine.Generator.Tests/System.CommandLine.Generator.Tests.csproj +++ b/src/System.CommandLine.Generator.Tests/System.CommandLine.Generator.Tests.csproj @@ -1,6 +1,6 @@  - net6.0 + $(TargetFrameworkForNETSDK) $(TargetFrameworks);net462 true true diff --git a/src/System.CommandLine.Hosting.Tests/System.CommandLine.Hosting.Tests.csproj b/src/System.CommandLine.Hosting.Tests/System.CommandLine.Hosting.Tests.csproj index 328b4e1245..8e2cd6ea40 100644 --- a/src/System.CommandLine.Hosting.Tests/System.CommandLine.Hosting.Tests.csproj +++ b/src/System.CommandLine.Hosting.Tests/System.CommandLine.Hosting.Tests.csproj @@ -1,7 +1,7 @@  - net6.0 + $(TargetFrameworkForNETSDK) $(TargetFrameworks);net462 false diff --git a/src/System.CommandLine.NamingConventionBinder.Tests/System.CommandLine.NamingConventionBinder.Tests.csproj b/src/System.CommandLine.NamingConventionBinder.Tests/System.CommandLine.NamingConventionBinder.Tests.csproj index 43eb7c29e6..7bff17964a 100644 --- a/src/System.CommandLine.NamingConventionBinder.Tests/System.CommandLine.NamingConventionBinder.Tests.csproj +++ b/src/System.CommandLine.NamingConventionBinder.Tests/System.CommandLine.NamingConventionBinder.Tests.csproj @@ -1,6 +1,6 @@  - net6.0 + $(TargetFrameworkForNETSDK) $(TargetFrameworks);net462 10 diff --git a/src/System.CommandLine.Rendering.Tests/System.CommandLine.Rendering.Tests.csproj b/src/System.CommandLine.Rendering.Tests/System.CommandLine.Rendering.Tests.csproj index 1c116508e3..afd6dc6a46 100644 --- a/src/System.CommandLine.Rendering.Tests/System.CommandLine.Rendering.Tests.csproj +++ b/src/System.CommandLine.Rendering.Tests/System.CommandLine.Rendering.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + $(TargetFrameworkForNETSDK) false diff --git a/src/System.CommandLine.Suggest.Tests/EndToEndTestApp/EndToEndTestApp.csproj b/src/System.CommandLine.Suggest.Tests/EndToEndTestApp/EndToEndTestApp.csproj index 9a3eb54d35..76add0d5a9 100644 --- a/src/System.CommandLine.Suggest.Tests/EndToEndTestApp/EndToEndTestApp.csproj +++ b/src/System.CommandLine.Suggest.Tests/EndToEndTestApp/EndToEndTestApp.csproj @@ -6,7 +6,7 @@ Exe - net6.0 + $(TargetFrameworkForNETSDK) diff --git a/src/System.CommandLine.Suggest.Tests/dotnet-suggest.Tests.csproj b/src/System.CommandLine.Suggest.Tests/dotnet-suggest.Tests.csproj index da6abedf0b..f1711a10e1 100644 --- a/src/System.CommandLine.Suggest.Tests/dotnet-suggest.Tests.csproj +++ b/src/System.CommandLine.Suggest.Tests/dotnet-suggest.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + $(TargetFrameworkForNETSDK) diff --git a/src/System.CommandLine.Suggest/dotnet-suggest.csproj b/src/System.CommandLine.Suggest/dotnet-suggest.csproj index fd82500868..ce4bda1d6b 100644 --- a/src/System.CommandLine.Suggest/dotnet-suggest.csproj +++ b/src/System.CommandLine.Suggest/dotnet-suggest.csproj @@ -1,7 +1,7 @@  Exe - net6.0 + $(TargetFrameworkForNETSDK) true true dotnet-suggest diff --git a/src/System.CommandLine.Tests/System.CommandLine.Tests.csproj b/src/System.CommandLine.Tests/System.CommandLine.Tests.csproj index c1988ec497..44b5c9fc96 100644 --- a/src/System.CommandLine.Tests/System.CommandLine.Tests.csproj +++ b/src/System.CommandLine.Tests/System.CommandLine.Tests.csproj @@ -1,6 +1,6 @@  - net6.0 + $(TargetFrameworkForNETSDK) $(TargetFrameworks);net462 false diff --git a/src/System.CommandLine.Tests/TestApps/NativeAOT/NativeAOT.csproj b/src/System.CommandLine.Tests/TestApps/NativeAOT/NativeAOT.csproj index b0036ed029..cc306fea0d 100644 --- a/src/System.CommandLine.Tests/TestApps/NativeAOT/NativeAOT.csproj +++ b/src/System.CommandLine.Tests/TestApps/NativeAOT/NativeAOT.csproj @@ -2,13 +2,13 @@ Exe - net6.0 + $(TargetFrameworkForNETSDK) false - ..\..\..\System.CommandLine\bin\Release\net6.0\System.CommandLine.dll + ..\..\..\System.CommandLine\bin\Release\$(TargetFrameworkForNETSDK)\System.CommandLine.dll diff --git a/src/System.CommandLine.Tests/TestApps/Trimming/Trimming.csproj b/src/System.CommandLine.Tests/TestApps/Trimming/Trimming.csproj index 6dcf889293..615b0764cf 100644 --- a/src/System.CommandLine.Tests/TestApps/Trimming/Trimming.csproj +++ b/src/System.CommandLine.Tests/TestApps/Trimming/Trimming.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + $(TargetFrameworkForNETSDK) enable enable true @@ -10,7 +10,7 @@ - ..\..\..\System.CommandLine\bin\Release\net6.0\System.CommandLine.dll + ..\..\..\System.CommandLine\bin\Release\$(TargetFrameworkForNETSDK)\System.CommandLine.dll diff --git a/src/System.CommandLine/System.CommandLine.csproj b/src/System.CommandLine/System.CommandLine.csproj index 424053a6e8..37115d707f 100644 --- a/src/System.CommandLine/System.CommandLine.csproj +++ b/src/System.CommandLine/System.CommandLine.csproj @@ -3,7 +3,7 @@ true System.CommandLine - net6.0;netstandard2.0 + $(TargetFrameworkForNETSDK);netstandard2.0 enable true 10 @@ -15,9 +15,12 @@ * Test and debug support true + true + + + true true - true