Skip to content

Commit

Permalink
Add AnnotatedReferenceAssemblyVersion to fix build (#352)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
canro91 authored Jul 8, 2024
1 parent 08d3340 commit c58d4ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<AnnotatedReferenceAssemblyVersion>5.0.0</AnnotatedReferenceAssemblyVersion>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="TunnelVisionLabs.ReferenceAssemblyAnnotator" Version="1.0.0-alpha.160" PrivateAssets="all" />
<PackageDownload Include="Microsoft.NETCore.App.Ref" Version="[3.1.0]" />
<PackageDownload Include="Microsoft.NETCore.App.Ref" Version="[$(AnnotatedReferenceAssemblyVersion)]" />
</ItemGroup>

</Project>

0 comments on commit c58d4ea

Please sign in to comment.