Skip to content

Commit

Permalink
Merge pull request #23 from sharwell/auto-add
Browse files Browse the repository at this point in the history
Automatically annotate several .NET Framework assemblies
  • Loading branch information
sharwell authored Sep 6, 2019
2 parents 96e590e + e9d5490 commit ce7f50a
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 ce7f50a

Please sign in to comment.