Skip to content

Instantly share code, notes, and snippets.

@WildGenie
Forked from thecodejunkie/highlight.xml
Created March 24, 2017 10:12
Show Gist options
  • Save WildGenie/c92a6dda629c03949c6cb37b00017a7e to your computer and use it in GitHub Desktop.
Save WildGenie/c92a6dda629c03949c6cb37b00017a7e to your computer and use it in GitHub Desktop.
Explicit cs Implict reference of NETStandard.Library
Are there any differences to the two approaches below? I.e impliclity ending up with the package reference to
NETStandard.Library 1.6.1, dvs running with DisableImplicitFrameworkReferences = true and adding an explicit
reference to NETStandard.Library?
Any pros/cons for either? Any hidden/implicit impacts?
See https://github.com/dotnet/sdk/pull/633#issuecomment-272515440 for some context
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net452;netstandard1.6</TargetFramework>
</PropertyGroup>
</Project>
vs.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net452;netstandard1.6</TargetFramework>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.6' ">
<PackageReference Include="NETStandard.Library" Version="1.6.1" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment