Skip to content

Commit 4842a7e

Browse files
BruceForstallViktorHofer
authored andcommitted
Fix test build error when .NET Core SDK 5 is installed on the machine (dotnet#225)
Fixes dotnet#185
1 parent 52f7c88 commit 4842a7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/coreclr/tests/src/Common/Directory.Build.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
-->
88
<Import Project="$([MSBuild]::GetPathOfFileAbove('disableversioncheck.targets', '$(MSBuildThisFileDirectory)../'))" />
99

10+
<ItemGroup>
11+
<KnownFrameworkReference Remove="Microsoft.AspNetCore.App" />
12+
<KnownFrameworkReference Remove="Microsoft.WindowsDesktop.App" />
13+
</ItemGroup>
14+
1015
<Target Name="CopyDependencyToCoreRoot"
1116
DependsOnTargets="ResolveAssemblyReferences">
1217

0 commit comments

Comments
 (0)