Skip to content

Commit c58d4ea

Browse files
authored
Add AnnotatedReferenceAssemblyVersion to fix build (#352)
* Add AnnotatedReferenceAssemblyVersion to fix build * Use version 5.0.0 instead of 3.1.0 * Use version 8.0.0 instead of 3.1.0 * Add TunnelVision only for .netstandard2.0
1 parent 08d3340 commit c58d4ea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Directory.Build.props

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77

8-
<ItemGroup>
8+
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
9+
<AnnotatedReferenceAssemblyVersion>5.0.0</AnnotatedReferenceAssemblyVersion>
10+
</PropertyGroup>
11+
12+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
913
<PackageReference Include="TunnelVisionLabs.ReferenceAssemblyAnnotator" Version="1.0.0-alpha.160" PrivateAssets="all" />
10-
<PackageDownload Include="Microsoft.NETCore.App.Ref" Version="[3.1.0]" />
14+
<PackageDownload Include="Microsoft.NETCore.App.Ref" Version="[$(AnnotatedReferenceAssemblyVersion)]" />
1115
</ItemGroup>
1216

1317
</Project>

0 commit comments

Comments
 (0)