Skip to content

Commit 3141f6c

Browse files
Fix build
Add workaround for regression in .NET 10 RC2 when multi-targeting with .NET Framework.
1 parent 2d1ee97 commit 3141f6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@
3131
<None Include="$(MSBuildThisFileDirectory)/internal/img/$(PackageIcon)" Pack="true" PackagePath="" />
3232
<None Include="$(MsBuildThisFileDirectory)/$(PackageReadmeFile)" Pack="true" PackagePath="" />
3333
</ItemGroup>
34+
<!-- HACK Workaround for https://github.com/dotnet/sdk/issues/51265 -->
35+
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
36+
<RestoreEnablePackagePruning>false</RestoreEnablePackagePruning>
37+
</PropertyGroup>
3438
</Project>

0 commit comments

Comments
 (0)