Red Gate forums :: View topic - where do i drop my PreDeploy.ps1
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

where do i drop my PreDeploy.ps1

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



Joined: 06 Nov 2013
Posts: 4

PostPosted: Wed Nov 06, 2013 8:25 pm    Post subject: where do i drop my PreDeploy.ps1 Reply with quote

I've read the documentation but I can't figure out where the "root of the nuget feed" is exactly. I'm not that familiar with nuget.

I've used the default installations for deployment manager. Can you give me an example of where i would drop by "predeploy.ps1" file? Thanks.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1117
Location: My desk.

PostPosted: Wed Nov 06, 2013 8:32 pm    Post subject: Reply with quote

You can think of a nuget package as a little like a zip file- it's basically a container.

As for your powershell file; it would be helpful to know how you're creating your nuget package, and the type of application you're packaging up.
Back to top
View user's profile Send private message
richie4444



Joined: 06 Nov 2013
Posts: 4

PostPosted: Wed Nov 06, 2013 10:46 pm    Post subject: Reply with quote

I'm using the deployment manager add-in for visual studio 2012
Back to top
View user's profile Send private message
richie4444



Joined: 06 Nov 2013
Posts: 4

PostPosted: Wed Nov 06, 2013 10:47 pm    Post subject: Reply with quote

The type of project is a asp.net web application
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1117
Location: My desk.

PostPosted: Thu Nov 07, 2013 9:09 am    Post subject: Reply with quote

OK, so you should be fine to add your .ps1 script to your solution, set the build action as 'Content'. Then, when you run the packaging add-in your script should be correctly included.
Back to top
View user's profile Send private message
richie4444



Joined: 06 Nov 2013
Posts: 4

PostPosted: Thu Nov 07, 2013 5:10 pm    Post subject: Reply with quote

Where exactly do I add my script
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1117
Location: My desk.

PostPosted: Thu Nov 07, 2013 5:22 pm    Post subject: Reply with quote

In Visual Studio, just add a new file to your project. It's probably easier to create "PreDeploy.ps1" using Notepad, drop it into your project folder, and then in VS, right click your project, select "Add", then "Existing Item", and pick the file.
Ensure the build action on the properties is "Content" and then when you run the packaging tool, it'll be included.
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