diff --git a/Directory.Build.props b/Directory.Build.props index 94df1c1d9511..5a1e23a7d832 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -110,7 +110,7 @@ - $(NoWarn.Replace('1591', '')) + $(NoWarn.Replace('1591', ''));NETSDK1023 $(NoWarn);0105 diff --git a/Directory.Build.targets b/Directory.Build.targets index 1f1616124bb4..47612e6c1071 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -171,7 +171,7 @@ - true + false true true @@ -198,4 +198,11 @@ + + + + diff --git a/NuGet.config b/NuGet.config index 46ee1c2f75f3..fa90ac9f0f63 100644 --- a/NuGet.config +++ b/NuGet.config @@ -8,6 +8,7 @@ + diff --git a/eng/build.ps1 b/eng/build.ps1 index 9e7fd3057ec8..a56cf94bc9e5 100644 --- a/eng/build.ps1 +++ b/eng/build.ps1 @@ -433,6 +433,7 @@ try { /p:Restore=$RunRestore ` /p:Build=true ` /clp:NoSummary ` + /nowarn:NETSDK1023 ` @ToolsetBuildArguments } @@ -441,7 +442,7 @@ try { Remove-Item variable:global:_BuildTool -ErrorAction Ignore $msbuildEngine = 'vs' - MSBuild $toolsetBuildProj /p:RepoRoot=$RepoRoot @MSBuildArguments + MSBuild $toolsetBuildProj /p:RepoRoot=$RepoRoot /nowarn:NETSDK1023 @MSBuildArguments } if ($performDotnetBuild) { @@ -449,7 +450,7 @@ try { Remove-Item variable:global:_BuildTool -ErrorAction Ignore $msbuildEngine = 'dotnet' - MSBuild $toolsetBuildProj /p:RepoRoot=$RepoRoot @dotnetBuildArguments + MSBuild $toolsetBuildProj /p:RepoRoot=$RepoRoot /nowarn:NETSDK1023 @dotnetBuildArguments } } catch { diff --git a/eng/build.sh b/eng/build.sh index 311734c91cff..fa86f98fe5df 100755 --- a/eng/build.sh +++ b/eng/build.sh @@ -369,13 +369,14 @@ if [ "$build_repo_tasks" = true ]; then -p:Restore=$run_restore \ -p:Build=true \ -clp:NoSummary \ + -nowarn:NETSDK1023 \ ${toolset_build_args[@]+"${toolset_build_args[@]}"} fi if [ "$only_build_repo_tasks" != true ]; then # This incantation avoids unbound variable issues if msbuild_args is empty # https://stackoverflow.com/questions/7577052/bash-empty-array-expansion-with-set-u - MSBuild $_InitializeToolset -p:RepoRoot="$repo_root" ${msbuild_args[@]+"${msbuild_args[@]}"} + MSBuild $_InitializeToolset -p:RepoRoot="$repo_root" -nowarn:NETSDK1023 ${msbuild_args[@]+"${msbuild_args[@]}"} fi ExitWithExitCode 0 diff --git a/eng/tools/GenerateFiles/Directory.Build.targets.in b/eng/tools/GenerateFiles/Directory.Build.targets.in index c5206ec8c611..dff947b5ab82 100644 --- a/eng/tools/GenerateFiles/Directory.Build.targets.in +++ b/eng/tools/GenerateFiles/Directory.Build.targets.in @@ -53,6 +53,12 @@ ${MicrosoftAspNetCoreAppRuntimeVersion} + + + diff --git a/packages/Microsoft.Net.Compilers.Toolset.4.1.0-ci.final.nupkg b/packages/Microsoft.Net.Compilers.Toolset.4.1.0-ci.final.nupkg new file mode 100644 index 000000000000..2908e6c4e6a6 Binary files /dev/null and b/packages/Microsoft.Net.Compilers.Toolset.4.1.0-ci.final.nupkg differ