Skip to content

Instantly share code, notes, and snippets.

@trailmax
Created December 7, 2017 15:10
Show Gist options
  • Save trailmax/1c5daf72c162e56777f149a50ac6adcc to your computer and use it in GitHub Desktop.
Save trailmax/1c5daf72c162e56777f149a50ac6adcc to your computer and use it in GitHub Desktop.
Conditional inclusion of nuget in .Net Core
<ItemGroup>
<Reference Include="System.ComponentModel.DataAnnotations" Condition="'$(TargetFramework)' == 'net4.5'" />
</ItemGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment