Problem while using visual studio to "web deploy" to a shared hosting
Error 1 Could not open Source file: Could not find a part of the path 'C:\Users\xxxxxx\documents\visual studio 2013\Projects\xxxxxxxxxx xxxxxx xxxxx\xxxxxxxxxx xxxxxx xxxxx\umbraco\Xslt\Web.config;\umbraco\Xslt\Web.config'. 0 0 xxxxxxxxxxxxxxx xxxxxx
I spent some time looking into this one a long time ago. Are you perhaps handling copying the umbraco/umbraco_client directories yourself? My issue was that we excluded these folders from the deployment/repo and used an xcopy command to copy them from the NuGet folder on build. This worked great, but newer versions of Umbraco also have their own mechanisms of copying these folders, which then apparently gets VS/MSDeploy really confused about duplicate transforms.
My workaround has been to simply remove Umbraco's mechanism of copying the files (though I should probably go the other way around). To do so, remove these two lines from your .csproj:
Problem while using visual studio to "web deploy" to a shared hosting
Error 1 Could not open Source file: Could not find a part of the path 'C:\Users\xxxxxx\documents\visual studio 2013\Projects\xxxxxxxxxx xxxxxx xxxxx\xxxxxxxxxx xxxxxx xxxxx\umbraco\Xslt\Web.config;\umbraco\Xslt\Web.config'. 0 0 xxxxxxxxxxxxxxx xxxxxx
I am trying a web deploy to my shared hosting, but i am getting same problem as this one: https://our.umbraco.org/forum/getting-started/installing-umbraco/60222-Umbraco-721-Build-fails-after-deploy-to-Azure-WebSite, however i am not able to solve it with setting "umbraco/xslt/web.config build action to none.
according to this link, the same problem should been solved, right ? I have installed using nuget version 7.2.6 of umbraco cms
Can someone help in this ?
Hi Bruno,
I spent some time looking into this one a long time ago. Are you perhaps handling copying the
umbraco
/umbraco_client
directories yourself? My issue was that we excluded these folders from the deployment/repo and used anxcopy
command to copy them from the NuGet folder on build. This worked great, but newer versions of Umbraco also have their own mechanisms of copying these folders, which then apparently gets VS/MSDeploy really confused about duplicate transforms.My workaround has been to simply remove Umbraco's mechanism of copying the files (though I should probably go the other way around). To do so, remove these two lines from your .csproj:
Probably not the "right" way but it's been working well for me :)
Hope that helps, Tom
It was very helpful for me, thank you Tom!
is working on a reply...