trampster
trampster

Reputation: 8898

Nuget package wrongly pulls in net standard libs instead of full

I have a nuget package that multi targets netstandard1.4 and net461.

When I use this nuget package from a .net 4.6.1 project pulls in all the system.* assemblies and the NETStandard.Library

Why is it doing this and how do I get it to reference the net461 version, without all the net standard stuff.

Upvotes: 1

Views: 75

Answers (1)

trampster
trampster

Reputation: 8898

Fixed it..

My Nuget package had a dependency on another package. I had a reference to the net standard version of that other package.

Updating to a multi targeted version of the other package fixed my problem.

Upvotes: 1

Related Questions