Skip to content

Commit 2e1d6d2

Browse files
Pin samples/ProjectCachePlugin to released MSBuild (#11563)
This will ensure that we're testing compatibility, and avoid requiring updating the dependencies of the ProjectCachePlugin.
1 parent cba02b6 commit 2e1d6d2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Samples/ProjectCachePlugin/ProjectCachePlugin.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(FullFrameworkTFM);$(LatestDotNetCoreForMSBuild)</TargetFrameworks>
99
</PropertyGroup>
1010
<ItemGroup>
11-
<ProjectReference Include="..\..\Build\Microsoft.Build.csproj" />
12-
<ProjectReference Include="..\..\Framework\Microsoft.Build.Framework.csproj" />
11+
<PackageReference Include="Microsoft.Build" Version="16.11.0" PrivateAssets="all" />
12+
13+
<!-- Bump versions of transitive dependencies to vulnerable packages,
14+
but don't reference them so the plugin doesn't carry higher references
15+
than its targeted MSBuild. NOT NECESSARY for public plugins; use higher MSBuild. -->
16+
<PackageReference Include="System.Drawing.Common" Version="4.7.2" ExcludeAssets="all" />
17+
<PackageReference Include="System.Text.Encodings.Web" Version="4.7.2" ExcludeAssets="all" />
1318
</ItemGroup>
1419
<ItemGroup>
1520
<PackageReference Include="Shouldly" Version="4.2.1" />

0 commit comments

Comments
 (0)