Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit eae87c7

Browse files
committed
Use framework reference assemblies when building on linux
In order to multi target and build on linux, this reference assemblies are needed
1 parent 57a1e6e commit eae87c7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838

3939
<ItemGroup>
4040
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
41+
<PackageReference Include="Microsoft.NetFramework.ReferenceAssemblies" Version="1.0.0-preview.2">
42+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
43+
<PrivateAssets>all</PrivateAssets>
44+
</PackageReference>
4145
</ItemGroup>
4246

4347
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">

tests/Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,11 @@
2222
<DefineConstants>$(DefineConstants);NETCORE_SUPPORT;NETCORE</DefineConstants>
2323
</PropertyGroup>
2424

25+
<ItemGroup>
26+
<PackageReference Include="Microsoft.NetFramework.ReferenceAssemblies" Version="1.0.0-preview.2">
27+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
28+
<PrivateAssets>all</PrivateAssets>
29+
</PackageReference>
30+
</ItemGroup>
31+
2532
</Project>

0 commit comments

Comments
 (0)