WebDeploy - Additional Files
We want to deploy our web application using WebDeploy to Azure Websites. Actually in our build, we have a grunt task that generates some javascript files that are not included in the .csproj file.
We need to push these files, they must be included in the WebDeploy package.
What is the best way to achieve that?
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
Support Staff 1 Posted by Feodor Fitsner on 30 Sep, 2014 03:52 PM
Will look into that. Right now working on the same problem with another customer.
2 Posted by charles on 30 Sep, 2014 05:09 PM
Cool, I think I could use a workaround for now, but did not find info in the documentation about how to exlude files from Artifacts?
In fact, I would like to bundle my web application in an artifact but remove all the *.cs and other files that are not necessary, is there a way to do that?
Support Staff 3 Posted by Feodor Fitsner on 30 Sep, 2014 05:17 PM
OK, I think I've got something.
This is a toy project: https://github.com/appveyor/simple-web/tree/master/MyWebApp
Our objective is adding contents of
GeneratedContent
directory into Web Deploy package (of course, initiallyGeneratedContent
is not part of web project.We will be adding those additional files into
*.csproj
file inbefore_build
block.I created a simple PS utility for patching
csproj
file: https://github.com/appveyor/simple-web/blob/master/add-project-cont...and this is how it's being called: https://github.com/appveyor/simple-web/blob/master/appveyor.yml#L17
Results:
GeneratedContent
: https://ci.appveyor.com/project/appvyr/simple-web/build/1.0.58/arti...GeneratedContent
: https://ci.appveyor.com/project/appvyr/simple-web/build/1.0.61/arti...You can download those zips and check their contents.
I think
add-project-content.ps1
could be used multiple times to add several folders as it just insertsItemGroup
s before closing</Project>
tag.Hope that helps. Let me know if you have any questions.
4 Posted by charles on 30 Sep, 2014 05:19 PM
Cool! You rock! Will give it a try later today.
Amazing support and product.
5 Posted by charles on 01 Oct, 2014 04:25 AM
Got it working! Thanks for the help.
6 Posted by Tom on 21 Aug, 2015 04:07 AM
Is this still the recommended way to add generated content to be deployed?
Support Staff 7 Posted by Feodor Fitsner on 21 Aug, 2015 04:22 AM
Nope, please look for the solution here: http://www.appveyor.com/docs/deployment/web-deploy#including-exclud...
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 AM.