I am working with the web application Umbraco. To speed up my workflow I have made the 'served' Umbraco folder a project inside my visual studio solution. This allows me to create other projects (.Logic, .Wcf, .etc) which my umbraco web application then depends on.
This solution works very nicely (easy to debug, no xcopy, etc). However, if a 'clean' is issued (msbuild solution.sln /t:Clean), MSBuild, looks at Umbraco's /bin folder and as you would expect, and cleans this directory. Resulting in a solution that will not build. (e.g. it see's lots of DLL's not used within the Solution and deletes them - essentially deleting the Umbraco application)
- Product
- Product.Logic (project containing Logic)
- Product.Web (project containing Umbraco application)
Is there a way of making MSBuild aware that these files (inside /bin) should not be deleted? Or would a better approach be to separate the Umbraco DLL's and my projects /bin, and later recombine them in a build event?
I have experimented with adding the DLL's as References into the CSProj, but this does not solve the problem.
<ItemGroup>
<Reference Include="businesslogic">
<SpecificVersion>False</SpecificVersion>
<Private>True</Private>
</Reference>
<Reference Include="ClientDependency.Core">
<SpecificVersion>False</SpecificVersion>
<Private>True</Private>
</Reference>
</ItemGroup>
<!-- etc -->
Best of wishes,
Laurence