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
This stackoverflow question has a comment from a customer who was confused by the docs because it claims the argument only accepts a project file, but testing with a solution file, it packs all the projects in the solution (at least in my simple 2 classlib project solution). I think it would be good if the docs (and dotnet pack -h) were updated to mention that the argument could also be a sln file.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: a7e805a3-f2ec-b05a-d5c8-29f7a8c16a5f
Version Independent ID: 4257ec12-df6f-ec52-aad3-012e5fce8133
Thanks for the feedback @zivkan and apologies on the delay on getting this triaged. I'm going through the issues for dotnet pack as I'm making some updates to it at the moment. @KathleenDollard@livarcoccdotnet pack --help also states that only projects are accepted. So should I open a bug in the CLI repo too for this?
It would also be very helpful to explain what dotnet pack <sln> does behind the scenes (i.e. how it figures out what to pack), since nuget pack doesn't support packing a solution file.
Activity
mkvalluri commentedon Jun 9, 2019
And this issue still exists
mairaw commentedon Aug 9, 2019
Thanks for the feedback @zivkan and apologies on the delay on getting this triaged. I'm going through the issues for dotnet pack as I'm making some updates to it at the moment. @KathleenDollard @livarcocc
dotnet pack --helpalso states that only projects are accepted. So should I open a bug in the CLI repo too for this?mairaw commentedon Aug 9, 2019
I just confirmed it works with solution files as well, so I'm adding that to the docs.
KathleenDollard commentedon Aug 9, 2019
And please open an issue on dotnet/cli
mairaw commentedon Aug 21, 2019
Ok. I've actually opened a PR for that @KathleenDollard dotnet/cli#12331
IanKemp commentedon Aug 22, 2019
It would also be very helpful to explain what
dotnet pack <sln>does behind the scenes (i.e. how it figures out what to pack), sincenuget packdoesn't support packing a solution file.