Red Gate forums :: View topic - How do I eliminate NuGet package dependencies?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

How do I eliminate NuGet package dependencies?

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
dcameron



Joined: 30 Nov 2012
Posts: 2

PostPosted: Fri Nov 30, 2012 9:18 pm    Post subject: How do I eliminate NuGet package dependencies? Reply with quote

How do you eliminate the dependencies? Whenever I use the NuGet Pack step in TeamCity 7.x, it doesn't put the dependency binaries in my bin folder. It just creates a nupkg file with references to other nupkg dependencies.
Back to top
View user's profile Send private message
Mike Upton



Joined: 11 May 2011
Posts: 152
Location: Red Gate

PostPosted: Tue Dec 04, 2012 5:59 pm    Post subject: Reply with quote

Have you tried creating a Nuspec file (documentation here) to define the package contents rather than running the NuGet Pack step against a project file? You can specify the dependencies manually when you use a Nuspec file, and given that Deployment Manager doesn't support package dependencies, you'll want to leave the dependencies section empty.

Hope that helps. Let me know if you have any problems getting it to work.

Kind Regards,
Mike
_________________
Mike Upton

Software Engineer
Red Gate Software Ltd.
Back to top
View user's profile Send private message
dcameron



Joined: 30 Nov 2012
Posts: 2

PostPosted: Tue Dec 04, 2012 6:02 pm    Post subject: Reply with quote

Do I need to list every file in my nuspec file? Would that mean that every time we add a dependency, we need to edit the nuspec file?
Back to top
View user's profile Send private message
Mike Upton



Joined: 11 May 2011
Posts: 152
Location: Red Gate

PostPosted: Tue Dec 04, 2012 7:46 pm    Post subject: Reply with quote

No, the file elements you use to specify files to include support wildcards, including '**' for a recursive directory search. This is described in detail in http://docs.nuget.org/docs/reference/nuspec-reference#Specifying_Files_to_Include_in_the_Package
_________________
Mike Upton

Software Engineer
Red Gate Software Ltd.
Back to top
View user's profile Send private message
swinghouse



Joined: 12 Sep 2011
Posts: 99

PostPosted: Mon Jan 07, 2013 2:37 pm    Post subject: Reply with quote

To Red Gate:

Perhaps you could add this information to the NuSpec documentation at http://www.red-gate.com/supportcenter/Content/Deployment_Manager/help/1.0/dm_nuget_packages?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group