-
Notifications
You must be signed in to change notification settings - Fork 258
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
It is not possible to pack multiple projects into one NuGet package #5360
Comments
From @Patrickkk on June 2, 2017 7:48 While it would probably be nice to have (especially for legacy stuff). |
From @quarion on June 2, 2017 8:42 Yes, that is definitely possible to just merge the two projects together, and this is a workaround that I will use. But I would imagine, that there might be some valid scenarios similar to this one: CommonLib.csproj <- this provide no value on its own, so it should not be published. |
ping: @emgarten @rohit21agrawal |
Closing as duplicate of : #3891 |
I wonder if it will be possible to pack multiple projects into one NuGet package? |
My solution:
|
Another solution: nupkg is just another zip file so just generate it with a tool you make instead. |
@jangix Can you post an example input and output |
From @quarion on May 29, 2017 13:34
Steps to reproduce
Using VS 2017 and new .csproj format
Expected behavior
ProjectA.nupkg is created. It contains ProjectA.dll and CommonLib.dll.
Actual behavior
ProjectA.nupkg is created. It contains only ProjectA.dll. CommonLib is added as a NuGet dependency.
Additional info
I have tried to add
<IsPackable>false</IsPackable>
property to the CommonLib.csproj, but it is not take into the consideration.Environment data
dotnet --info
output:NET Command Line Tools (1.0.1)
Product Information:
Version: 1.0.1
Commit SHA-1 hash: 005db40cd1
Runtime Environment:
OS Name: Windows
OS Version: 6.1.7601
OS Platform: Windows
RID: win7-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.1
Copied from original issue: dotnet/cli#6707
The text was updated successfully, but these errors were encountered: