-
Notifications
You must be signed in to change notification settings - Fork 256
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
Suppress the <dependencies> element when packing a project #5132
Comments
The only case where it makes sense to insert this is when there are no |
It seems I have logged a similar issue here: dotnet/msbuild#3044 What is the outcome of this? |
I also want this to build source code only package, any update for this? |
@rohit21agrawal This something I'd like to see supported as well. Any thoughts on the feasibility of doing this? |
I really need this too. |
I had the same problem until now. Adding the following to the <PropertyGroup>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
</PropertyGroup> See NuGet/NuGet.Client#2237. (Note that the property was renamed along the way.) |
Thanks @gitfool, that works perfectly! If only these things were documented... or at least if only someone from the NuGet team could have told us this earlier... |
FTR this is a dup of #6354 and I believe it can be closed. |
Yes, thanks for finding! |
This is not working as expected. Looks like only one guy is using this. |
@mujdatdinc It's been working for me and several others. Can you clarify what you are doing and what you expect to see? |
Via #4059 (comment)
When I pack my project using
msbuild /t:pack
, the generated nuspec contains an empty dependencies section. I'd like to be able to entirely remove the<dependencies>
element:To me it makes sense to remove it by default if there are no dependencies, but if removing it can't be the default behavior for some reason, could I have some way to suppress it? In order of preference:
<SuppressDependencies>
propertyEdit: the new property to use is
<SuppressDependenciesWhenPacking>
.The text was updated successfully, but these errors were encountered: