diff --git a/build/common.project.props b/build/common.project.props index e2e3c0c11dc..79a9353911f 100644 --- a/build/common.project.props +++ b/build/common.project.props @@ -10,20 +10,24 @@ + $(DotNetBuildFromSource) PackageReference v4.7.2 net472 netcoreapp2.1 + net6.0 netcoreapp5.0 - $(DotNetBuildFromSource) netstandard2.0 + net6.0 $(NETFXTargetFramework);$(NETCoreTargetFramework) $(NETCoreTargetFramework) $(TargetFrameworksExe);netcoreapp5.0 $(NETCoreTargetFramework);netcoreapp5.0 + $(TargetFrameworksExe);net6.0 $(NETFXTargetFramework);$(NetStandardVersion) $(NetStandardVersion) $(TargetFrameworksLibrary);netcoreapp5.0 + $(TargetFrameworksLibrary);net6.0 $(NETFXTargetFramework);netcoreapp5.0 $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'README.md'))\ $(RepositoryRootDirectory)build\ @@ -52,6 +56,8 @@ $(SolutionPackagesFolder)microsoft.dotnet.build.tasks.feed\6.0.0-beta.20528.5\tools\netcoreapp2.1\Microsoft.DotNet.Build.Tasks.Feed.dll $(SolutionPackagesFolder)microsoft.dotnet.maestro.tasks\1.1.0-beta.21378.2\tools\netcoreapp3.1\Microsoft.DotNet.Maestro.Tasks.dll $(NoWarn);NU5105;MSB3277 + + $(NoWarn);CS1998;CA1416;CS0618;CS1574 @@ -85,6 +91,7 @@ {HintPathFromItem};{TargetFrameworkDirectory};{RawFileName} 9 + latest diff --git a/build/common.targets b/build/common.targets index 7a353ebf8e3..67f0f0426e7 100644 --- a/build/common.targets +++ b/build/common.targets @@ -6,7 +6,7 @@ true - + $(DefineConstants);IS_CORECLR true @@ -65,6 +65,11 @@ + + + false + + true diff --git a/build/packages.targets b/build/packages.targets index 614a0ca6837..c11557248ee 100644 --- a/build/packages.targets +++ b/build/packages.targets @@ -2,6 +2,8 @@ 16.8.0 13.0.1 + 3.0.0 + 4.5.0 4.3.0 17.0.0-previews-1-31321-016 16.153.0 @@ -42,10 +44,10 @@ - + - + + SYSLIB0023;SYSLIB0026 diff --git a/test/TestUtilities/Test.Utility/ProjectManagement/TestNuGetProjectContext.cs b/test/TestUtilities/Test.Utility/ProjectManagement/TestNuGetProjectContext.cs index 6a08e7989f6..a22691026eb 100644 --- a/test/TestUtilities/Test.Utility/ProjectManagement/TestNuGetProjectContext.cs +++ b/test/TestUtilities/Test.Utility/ProjectManagement/TestNuGetProjectContext.cs @@ -63,7 +63,7 @@ public FileConflictAction ResolveFileConflict(string message) public ISourceControlManagerProvider SourceControlManagerProvider { get; set; } - public ExecutionContext ExecutionContext + public NuGet.ProjectManagement.ExecutionContext ExecutionContext { get { return TestExecutionContext; } } @@ -101,7 +101,7 @@ public Guid OperationId } } - public class TestExecutionContext : ExecutionContext + public class TestExecutionContext : NuGet.ProjectManagement.ExecutionContext { public TestExecutionContext(PackageIdentity directInstall) {