Rss Feed
Tweeter button
Facebook button
Technorati button
Reddit button
Linkedin button
Delicious button
Digg button
Flickr button
Stumbleupon button
31 articles and counting
      

To remember: .net web app deployment

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>

Comment / Leave a Review

  Name (required)
  Mail (will not be published) (required)



Parse error: syntax error, unexpected '<' in /home/philogy/public_html/wordpress/wp-content/themes/prettypress/statcode.php on line 7