.Net Core 2 run the `deploy.ps1` script after deployment
Hi
We have a .Net Core 2 application and the deployment works well.
What we would like to do is run the deploy.ps1 script after deployment.
How can we include the deploy.ps1 file in the project?
(The file will not exists in the GitHub repo because it is dynamically created. We have a copy of the deploy.ps1 file at build time.)
Thanks,
Joel
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

1 Posted by Ilya Finkelshte... on 16 Nov, 2017 08:13 PM
Can you please provide more context?
2 Posted by joel.mccune on 16 Nov, 2017 08:27 PM
Sample of our appveyor.yml
3 Posted by Ilya Finkelshte... on 16 Nov, 2017 08:41 PM
Thanks a lot for the clarification! You need to do the following:
<Content Include="deploy.ps1" />into.csprojfile (in the same section with other includes) for your project. Add subfolder to the path if needed (if you create file not in the root site's folder)buildstep (which contains WAP packaging)Let us know if this works.
4 Posted by joel.mccune on 16 Nov, 2017 10:46 PM
Thanks Ilya, this works
joel.mccune closed this discussion on 16 Nov, 2017 10:46 PM.