-
Notifications
You must be signed in to change notification settings - Fork 12
.Net Standard Library Dependency #3
Comments
Referencing it makes development easier, since I don't have to look for packages to get features that were there by default in "normal" .Net development. |
We do commit our packages directory and the changed files are mainly from the packages directory. I've read here that the NETStandard library package should not be referenced by libraries.
but I have to confess that my knowledge about Net Standard is modest and I don't know what the best practices are. |
Thanks for that reference. |
This issue is now fixed with version 2.0.4.
However, I still agree that referencing as little as possible is the way to go. It is possible to disable that implicit reference by adding a |
You could disable the NETStandard.Library dependency from being included as a dependency of your NuGet package without disabling the implicit reference entirely with the following: <ItemGroup>
<PackageReference Update="NETStandard.Library" PrivateAssets="true" />
</ItemGroup> This will happen automatically when targeting .NET Standard 2.0 or higher: dotnet/sdk#1171 |
Thank you, @dsplaisted, this way seems more straightforward. |
I like your work.
One thing I noticed is the dependency to the .Net Standard Library.
When I install the nuget package for Pather.CSharp I end up with over 2000 changed files.
Is the .Net Standard Library really required as a dependency?
The text was updated successfully, but these errors were encountered: