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

Respect ReferenceOutputAssembly when packing a CSPROJ #1540

Closed
chandramouleswaran opened this issue Oct 8, 2015 · 2 comments
Closed

Respect ReferenceOutputAssembly when packing a CSPROJ #1540

chandramouleswaran opened this issue Oct 8, 2015 · 2 comments
Assignees
Labels
Priority:2 Issues for the current backlog. Type:Feature

Comments

@chandramouleswaran
Copy link

Hi,

Today all project references of a CSPROJ file are added to the package if nuget pack is called with -IncludeReferencedProject.

There are many real life production scenario where we have project references only to control build order - we use False to control the same.

We need a way in ProjectFactory.cs to also look at this metadata before including the output of the referenced project to the package.

https://github.com/NuGet/NuGet.PackageManagement/blob/3d6cf88131280c789d81f543b33df40421ad7e5b/src/NuGet.CommandLine/Commands/ProjectFactory.cs

Thanks
Chandra

@yishaigalatzer
Copy link

@chandramouleswaran this is the first time I'm seeing project references used this way. I've used batch build before to control the build order.

The simple answer for this kind of question is: Use a nuspec based packing. .csproj packing is a very limited feature, and our investment in it come at a low priority.

We would consider a pull request of course (code, test & docs).

@deepakaravindr
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:2 Issues for the current backlog. Type:Feature
Projects
None yet
Development

No branches or pull requests

4 participants