You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Targets not imported from dependency of a package reference #6206
Hello, i found the problem I am using the nuget explorer and didn't see some hidden property in generated nuspec.
It's sad that we can't exclude a targets from the project A build but include it for the project who use nuget of project A. need to use nuspec to achieve this.
It's sad that we can't exclude a targets from the project A build but include it for the project who use nuget of project A. need to use nuspec to achieve this.
You can do this by setting PrivateAssets=None on the project reference. The nuspec captures the state of the project. In your scenario if all packages were projects this would not flow either.
Activity
emgarten commentedon Nov 20, 2017
From @Pilchie on November 20, 2017 16:24
@rrelyea @emgarten - this sounds like it should be moved to nuget/Home?
emgarten commentedon Nov 20, 2017
@bhugot can you share the reference in NuGetA's nuspec to NuGetB, does it have
exclude=build?bhugot commentedon Nov 21, 2017
Hello, i found the problem I am using the nuget explorer and didn't see some hidden property in generated nuspec.
It's sad that we can't exclude a targets from the project A build but include it for the project who use nuget of project A. need to use nuspec to achieve this.
emgarten commentedon Nov 21, 2017
You can do this by setting
PrivateAssets=Noneon the project reference. The nuspec captures the state of the project. In your scenario if all packages were projects this would not flow either.jainaashish commentedon Jan 10, 2018
closing as by design.