Problem:
While creating an installer for a .net web application, we usually follow a practice of adding a web deployment project and then adding the pre-compiled web output to a web setup project. An observation is that the precompiled web output contains project files, version control system files if any and debug symbols as well.
Solution:
Find a way to remove the files from precompiled web output. How: Open the web deployment project file and add following so that ItemGroup section looks like following. This example is considering SVN as a version control system.
<ItemGroup> <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\.svn\**\*.*;$(SourceWebPhysicalPath)\**\.svn\**\*.*"> </ExcludeFromBuild> <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\bin\*.pdb"> </ExcludeFromBuild> <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\*.csproj"> </ExcludeFromBuild> <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\*.user"> </ExcludeFromBuild> </ItemGroup>
COMMENTS: NONE YET FOR THIS POST
POSTED BY Jyotsna ON December 6th, 2008. PERMALINK
