Last post Dec 28, 2016 08:18 AM by Chris Zhao
Dec 07, 2016 04:08 PM|chilluk|LINK
In my MVC app I have several folders currently user the Content folder where I put thing like brand logos / promotional images etc.
I want to allow others to add images to these folders (at the production end) as it will be a constant task creating new images etc.
When I am publishing my code obviously I am stamping all over anything they may have done and replacing it with what I have locally on my copy of the app. What's the best way to allow this scenario of allowing other people to maintain the contents of these
What is best practice?
Dec 09, 2016 08:32 AM|Chris Zhao|LINK
You could refer following links, it describes how to exclude specific files and folders.
Dec 12, 2016 11:48 AM|chilluk|LINK
I can't get this to work - every time I publish it deletes the remote folders. I created a file called ProjectName.WebUI.wpp.targets as below (assuming my project is ProjectName.WebUI):
I have tried having the local versions of the folders as included and excluded from the project, but it just seems to always delete everything - my local copy can / will be empty but obviously I will separately be populating the remote version of the folders
from our library of images.
Dec 28, 2016 08:18 AM|Chris Zhao|LINK
If you select the "Remove additional files at destination" check box, the expected behavior is that Web Deploy will delete files on the destination server that you have deleted in your project.