Pin Microsoft.CodeAnalysis.Common to SBRP version

This commit is contained in:
Nikola Milosavljevic 2022-09-24 01:11:18 +00:00
parent e872e5f33e
commit d1a77fe17b
2 changed files with 8 additions and 3 deletions

View file

@ -211,6 +211,11 @@
<CliInternalBuildVersion>30000001-1</CliInternalBuildVersion>
</PropertyGroup>
<!-- Ref-only package versions -->
<PropertyGroup>
<RefOnlyMicrosoftCodeAnalysisCommonVersion>4.0.1</RefOnlyMicrosoftCodeAnalysisCommonVersion>
</PropertyGroup>
<ItemGroup>
<ExtraPackageVersionPropsPackageInfo Include="DotnetCliInternalVersion" Version="3.0.100-$(CliInternalReleaseTag)-$(CliInternalBuildVersion)" />
</ItemGroup>

View file

@ -28,10 +28,10 @@
repository. This must be lower than MicrosoftNetCompilersToolsetVersion,
but not higher than our minimum dogfoodable Visual Studio version, or else
the generators we build would load on the command line but not load in IDEs.
In source-build these don't need to be pinned and can use the source-built versions since it doesn't
need to support VS.
In source-build we use ref-only package from SBRP.
-->
<ExtraPackageVersionPropsPackageInfo Include="SourceGeneratorMicrosoftCodeAnalysisVersion" Version="%24(MicrosoftCodeAnalysisCommonVersion)" />
<ExtraPackageVersionPropsPackageInfo Include="SourceGeneratorMicrosoftCodeAnalysisVersion" Version="$(RefOnlyMicrosoftCodeAnalysisCommonVersion)" />
</ItemGroup>
<ItemGroup>