From cd1f82be2156e147cd63535f0179e7a91c049749 Mon Sep 17 00:00:00 2001 From: Jared Parsons Date: Fri, 9 Aug 2024 15:26:39 -0700 Subject: [PATCH] Move to central package pinning (#10716) * Move to central package pinning This should make it much easier for us to respond to CG alerts in the future. All that will need to be done is add an entry in Directory.Packages.props and it will automatically impact all consumers of it. Consider this example in Roslyn for how to respond to a CG issue https://github.com/dotnet/roslyn/pull/74653 --- Directory.Build.props | 1 + Directory.Packages.props | 12 ++++++------ ...soft.AspNetCore.Razor.Language.Legacy.Test.csproj | 3 +++ .../Microsoft.AspNetCore.Razor.Language.Test.csproj | 3 +++ ...AspNetCore.Razor.Microbenchmarks.Generator.csproj | 6 ++++-- ...rosoft.NET.Sdk.Razor.SourceGenerators.Test.csproj | 2 ++ 6 files changed, 19 insertions(+), 8 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index d2e322d133..69a3cd1524 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -26,6 +26,7 @@ $(MSBuildThisFileDirectory) true true + true $(MSBuildThisFileDirectory)src\Shared\ diff --git a/Directory.Packages.props b/Directory.Packages.props index 4e2bdea802..86b4aa1bca 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -16,7 +16,7 @@ <_MicrosoftCodeAnalysisAnalyzersPackageVersion>3.11.0-beta1.24170.2 <_MicrosoftVisualStudioLanguageServicesPackageVersion>$(MicrosoftVisualStudioLanguageServicesPackageVersion) <_XunitPackageVersion>2.6.3 - <_MicrosoftBuildPackageVersion>17.3.0-preview-22364-05 + <_MicrosoftBuildPackageVersion>17.11.0-preview-24309-01 @@ -89,7 +89,7 @@ - + @@ -109,13 +109,13 @@ - - + + - + - + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/legacyTest/Microsoft.AspNetCore.Razor.Language.Legacy.Test.csproj b/src/Compiler/Microsoft.AspNetCore.Razor.Language/legacyTest/Microsoft.AspNetCore.Razor.Language.Legacy.Test.csproj index 7b16714b91..160c21c8ca 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/legacyTest/Microsoft.AspNetCore.Razor.Language.Legacy.Test.csproj +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/legacyTest/Microsoft.AspNetCore.Razor.Language.Legacy.Test.csproj @@ -21,6 +21,9 @@ + + + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Microsoft.AspNetCore.Razor.Language.Test.csproj b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Microsoft.AspNetCore.Razor.Language.Test.csproj index f60fafca60..c0579b8432 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Microsoft.AspNetCore.Razor.Language.Test.csproj +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Microsoft.AspNetCore.Razor.Language.Test.csproj @@ -21,6 +21,9 @@ + + + diff --git a/src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator.csproj b/src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator.csproj index 67034ffdb9..aebe9633fe 100644 --- a/src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator.csproj +++ b/src/Compiler/perf/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator/Microsoft.AspNetCore.Razor.Microbenchmarks.Generator.csproj @@ -21,8 +21,10 @@ - - + + + + diff --git a/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.Tests/Microsoft.NET.Sdk.Razor.SourceGenerators.Test.csproj b/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.Tests/Microsoft.NET.Sdk.Razor.SourceGenerators.Test.csproj index 73ee7b956d..4d1acf312b 100644 --- a/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.Tests/Microsoft.NET.Sdk.Razor.SourceGenerators.Test.csproj +++ b/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.Tests/Microsoft.NET.Sdk.Razor.SourceGenerators.Test.csproj @@ -25,6 +25,8 @@ + +