Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excluding specific items from nuget library when using PackageReference #9101

Closed
ghost opened this issue Jan 24, 2020 · 1 comment
Closed
Labels
Functionality:Restore Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:Feature

Comments

@ghost
Copy link

ghost commented Jan 24, 2020

I am a package developer and I want to debug one assembly from my package in the context of an application that consumes the package. In the old packages.config style all package assemblies were direct references in the project using it. If MyTestPackage had A.dll and B.dll I could bring the csproj for A.dll into my solution and swap out the references from nuget to local project easily. Is there anything I can take advantage of in the new PackageReference format to accomplish the same?

@nkolev92
Copy link
Member

A more general ask for this is in: #5986

NuGet has some support for controlling the assets pulled in from a package - https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#controlling-dependency-assets

But it mostly talks about asset groups rather than specific.

That's really a consequence of the design of PackageReference, assets selection part is abstracted away from the project file, so that things like updates are easier to manage etc.

@nkolev92 nkolev92 added Functionality:Restore Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:Feature labels Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:Restore Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:Feature
Projects
None yet
Development

No branches or pull requests

1 participant