RiotSharp icon indicating copy to clipboard operation
RiotSharp copied to clipboard

Support setting CopyLocal to false on RiotSharp System... references

Open TitanX101 opened this issue 7 years ago • 2 comments

Hello, I want to compile my project without system/microsoft references copied to target path...

It is possible that you can add support to setting CopyLocal to false on these references?

TitanX101 avatar Apr 07 '18 21:04 TitanX101

sure, feel free to open a PR 👍

BenFradet avatar Apr 08 '18 18:04 BenFradet

EDIT: How are you compiling your project @Trigger-edge ?
What is your target-framework in your .csproj?


This has - most often - it's cause in ".netstandard" when using older versions of .NET Framework (ex. Building with 4.5.1 and netstandard1.3 results in dlls being copied. But building with 4.6.1 does not)

So one could either upgrade the .NET Framework requirement to, ex., 4.6.2 or add support for building against net451 by replacing this line with this, and add System.Net.Http as PackageReference

<TargetFramework>netstandard1.3</TargetFramework>
<!-- becomes this -->
<TargetFrameworks>netstandard1.3;net451</TargetFrameworks>
...
<ItemGroup Condition="'$(TargetFramework)'=='net451'">
  <Reference Include="System.Net.Http" />
</ItemGroup>
...

kirides avatar Apr 20 '18 16:04 kirides