KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm deploying my application to an Azure Website. I've configured the Publishing Profile succesfuly and setup tfspreview.com to publish automatically using continuous integration on each code commit. I have a folder on the path "/media". This folder has pictures and documents uploaded through the CMS (umbraco). This folder gets deleted on each web deploy. From this answer , I learned how to add a SkipDelete rule on either the .csproj or on the wpp.targets file, but everytime I publish the site the whole folder gets deleted anyway. Here is the code I'm currently using inside wpp.targets: <PropertyGroup> <AfterAddIisSettingAndFileContentsToSourceManifest> AddCustomSkipRules </AfterAddIisSettingAndFileContentsToSourceManifest> </PropertyGroup> <Target Name="AddCustomSkipRules"> <Message Text="Adding Custom Skip Rules" /> <ItemGroup> <MsDeploySkipRules Include="SkipMediaFolder"> <SkipAction>Delete</SkipAction> <ObjectName>filePath</ObjectName> <AbsolutePath>media</AbsolutePath> </MsDeploySkipRules> </ItemGroup> </Target> <PropertyGroup> <UseMsDeployExe>true</UseMsDeployExe> </PropertyGroup>
Tags (comma-separated)
Save Edits
Cancel