RiotSharp
RiotSharp copied to clipboard
Support setting CopyLocal to false on RiotSharp System... references
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?
sure, feel free to open a PR 👍
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>
...