Skip to content

Commit

Permalink
Automatically annotate several .NET Framework assemblies
Browse files Browse the repository at this point in the history
Fixes #18
  • Loading branch information
sharwell committed Sep 6, 2019
1 parent 96e590e commit e9d5490
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,20 @@
<!-- Automatically annotate .NET Standard assemblies -->
<Target Name="AddStandardAssembliesForAnnotation"
BeforeTargets="ResolveOutputReferenceAssemblies">
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<UnannotatedReferenceAssembly Include="%(Reference.Identity)"
Condition="Exists('$(AnnotatedReferenceAssemblyDirectory)%(Reference.Identity).dll')
AND ('%(Reference.Identity)' == 'System'
OR '%(Reference.Identity)' == 'System.Core'
OR '%(Reference.Identity)' == 'System.Data'
OR '%(Reference.Identity)' == 'System.Drawing'
OR '%(Reference.Identity)' == 'System.IO.Compression.FileSystem'
OR '%(Reference.Identity)' == 'System.Numerics'
OR '%(Reference.Identity)' == 'System.Runtime.Serialization'
OR '%(Reference.Identity)' == 'System.Xml'
OR '%(Reference.Identity)' == 'System.Xml.Linq')" />
</ItemGroup>

<ItemGroup Condition="'$(NETStandardLibraryPackageVersion)' == ''">
<!-- .NET Standard 1.x -->
<UnannotatedReferenceAssembly Include="@(Reference->'%(FileName)')"
Expand Down

0 comments on commit e9d5490

Please sign in to comment.