Red Gate forums :: View topic - Powershell
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

Powershell

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



Joined: 06 Dec 2013
Posts: 34
Location: Netherlands

PostPosted: Fri Dec 13, 2013 11:02 am    Post subject: Powershell Reply with quote

Hello,

I've a powershell script and variables.
I tried to place it in:
- the source folder of the project (include it in project, deploy via visual studio)
- i've added it in:
Code:
C:\ProgramData\Red Gate\DeploymentManager\Data\PackageCache\PackageName.1.0.6

- i've used it capitalized names like PostDeploy.ps1 and also deploy.ps1
- i've set variables on the variable page.
- i've published the project multiple times e.g. 1.0.4, 1.0.5, 1.0.6

And it still doesn't get processed when I deploy.
I've read some documentation but didn't helped me.

Where do I need to add this so it actually gets in the deployment?

Thanks for any help Smile

Edit
When using publishing via RgPublish.exe the PS file gets included. Now i've some errors to fix.
Back to top
View user's profile Send private message
Chris Auckland



Joined: 24 Oct 2006
Posts: 755
Location: Red Gate Software Ltd.

PostPosted: Mon Dec 16, 2013 1:36 pm    Post subject: Reply with quote

Thanks for your post.

When you added the script to the project, did you set the build action to : Content?

Also, it might be worth checking C:\ProgramData\RedGate\DeploymentManager\Data\feed
as the cache folder might be out of date.

I hope this helps.
_________________
Chris
Back to top
View user's profile Send private message Send e-mail
jochem4207



Joined: 06 Dec 2013
Posts: 34
Location: Netherlands

PostPosted: Thu Dec 19, 2013 10:45 am    Post subject: Reply with quote

Hey Chris,

Thanks for the answer. And sorry for the late response. In the meanwhile I fixed it using RgPublish to upload the whole directory instead of using visual studio extension.
Back to top
View user's profile Send private message
Chris Auckland



Joined: 24 Oct 2006
Posts: 755
Location: Red Gate Software Ltd.

PostPosted: Thu Dec 19, 2013 11:04 am    Post subject: Reply with quote

Thanks for your reply.

That sounds like a sensible workaround. However, you should still get the file using the extension, so let me know if you need any further help with this.
_________________
Chris
Back to top
View user's profile Send private message Send e-mail
jochem4207



Joined: 06 Dec 2013
Posts: 34
Location: Netherlands

PostPosted: Thu Dec 19, 2013 3:30 pm    Post subject: Re: Reply with quote

Chris Auckland wrote:
Thanks for your reply.

That sounds like a sensible workaround. However, you should still get the file using the extension, so let me know if you need any further help with this.


Hey Chris,

When I use the the visual studio right click upload functionlity it only takes the bin folder and some other configs. It ignores a folder I called redgate with stuff in it and a powershell in the main map.

I think this is probably proper behaviour but for me isn't it a problem because I wont deploy from visual studio. The RGpublish does what I want. But i'm curious why the vs plugin only thanks a few selected files.

Greetings and thanks for the awesome forum support. Defenitly one of the best free supports.
Back to top
View user's profile Send private message
Mike Upton



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

PostPosted: Thu Dec 19, 2013 5:22 pm    Post subject: Reply with quote

The Visual Studio plugin publishes everything marked as output in the project. This includes items that are copied to the output directory (normally the bin directory in webapps), and anything with a build action of 'Content'. To check/edit the build action for a file, right-click on it Solution Explorer and select 'Properties...' (or press Alt+Enter). You should change the build action for the additional files you want included to 'Content' instead of 'None'.
_________________
Mike Upton

Software Engineer
Red Gate Software Ltd.
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