I've web project with 3 defferent publish profiles, every profile (pubxml) make deployment to deifferent host.
Web app has 3 different skins custom folders, like this:
web app
|_Skins
|_ _ folder1
| _ _ folder2
| _ _ folder3
So, how can I deploy only one skin custom folder, and skip another two?
I find next way to exclude folder <ExcludeFoldersFromDeployment>folder1;folder2</ExcludeFoldersFromDeployment> , but if I have more then 20 folders like this it's not convinient.
Please, help me to understand how to manage folders(exclude / include/ skip) in publish?
None
0 Points
5 Posts
Msdeploy - how to publish one subfolder
Jul 04, 2014 01:33 PM|PavelBG|LINK
Hello,
I've web project with 3 defferent publish profiles, every profile (pubxml) make deployment to deifferent host.
Web app has 3 different skins custom folders, like this:
web app
|_Skins
|_ _ folder1
| _ _ folder2
| _ _ folder3
So, how can I deploy only one skin custom folder, and skip another two?
I find next way to exclude folder <ExcludeFoldersFromDeployment>folder1;folder2</ExcludeFoldersFromDeployment> , but if I have more then 20 folders like this it's not convinient.
Please, help me to understand how to manage folders(exclude / include/ skip) in publish?
exclude msdeploy excludeFolders excludefolder
All-Star
23975 Points
4084 Posts
Re: Msdeploy - how to publish one subfolder
Jul 06, 2014 10:08 PM|Starain chen - MSFT|LINK
Hi PavelBG,
There is the skip setting in the web deploy operation settings.
More information, please refer to:
# Web Deploy Operation Settings
http://technet.microsoft.com/en-us/library/dd569089(v=ws.10).aspx
Thanks
Best Regards
exclude msdeploy excludeFolders excludefolder
None
0 Points
5 Posts
Re: Msdeploy - how to publish one subfolder
Jul 08, 2014 06:04 AM|PavelBG|LINK
Thank you!
but how explicitly say to msdeploy "remove/delete" all subfolders in Skins folder?
exclude msdeploy excludeFolders excludefolder
All-Star
23975 Points
4084 Posts
Re: Msdeploy - how to publish one subfolder
Jul 08, 2014 11:30 PM|Starain chen - MSFT|LINK
Hi PavelBG,
The details is in the [project name].csproj.
So you could have multiple csproj file.
Thanks
Best Regards
exclude msdeploy excludeFolders excludefolder
None
0 Points
5 Posts
Re: Msdeploy - how to publish one subfolder
Jul 09, 2014 05:31 AM|PavelBG|LINK
I dont think so::)
exclude msdeploy excludeFolders excludefolder
None
0 Points
5 Posts
Re: Msdeploy - how to publish one subfolder
Jul 09, 2014 05:32 AM|PavelBG|LINK
I traying to use RemoveDir Task http://msdn.microsoft.com/en-us/library/xyfz6ddb.aspx
exclude msdeploy excludeFolders excludefolder
All-Star
23975 Points
4084 Posts
Re: Msdeploy - how to publish one subfolder
Jul 09, 2014 10:17 PM|Starain chen - MSFT|LINK
Hi PavelBG,
I don’t understand that you said “I don’t think so”.
This also can be specified in the [project name].csproj file.
Thanks
Best Regards
exclude msdeploy excludeFolders excludefolder
None
0 Points
5 Posts
Re: Msdeploy - how to publish one subfolder
Jul 10, 2014 02:43 AM|PavelBG|LINK
I mean, that "So you could have multiple csproj file." is not the option to make deployment like I need.
exclude msdeploy excludeFolders excludefolder
All-Star
23975 Points
4084 Posts
Re: Msdeploy - how to publish one subfolder
Jul 10, 2014 03:18 AM|Starain chen - MSFT|LINK
Hi,
Yes, your solution is better.
Thanks
exclude msdeploy excludeFolders excludefolder