Skip to content

Commit

Permalink
Add netfx conditional references & update package references
Browse files Browse the repository at this point in the history
  • Loading branch information
ceastwood committed Jun 26, 2018
1 parent ba6211c commit a05c9c9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Directory.build.props
Expand Up @@ -21,13 +21,19 @@
</PropertyGroup>

<!-- Workarounds for https://github.com/NuGet/Home/issues/4853 -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'net451' ">
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramwork)' == 'net451' ">
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>

<!-- Because of https://github.com/NuGet/Home/issues/4853 -->
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net451' ">
<Reference Include="System"/>
<Reference Include="System.Core"/>
</ItemGroup>

<ItemGroup>
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.6.0" PrivateAssets="All" />
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="4.4.0" PrivateAssets="All" />
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.8.1" PrivateAssets="All" />
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="4.6.2" PrivateAssets="All" />
</ItemGroup>
</Project>

0 comments on commit a05c9c9

Please sign in to comment.