"Max2006" <al*******@newsgroup.nospamwrote in message
news:Oj**************@TK2MSFTNGP06.phx.gbl...
When I use Web Deployment Project to create a deployment image of my web
site, It includes un-necessaty files such as *.csproj files.
Can I disable the deployment of *.csproj files?
1) Right-click on the WDP project in your solution and select "Open Project
File"
2) Scroll right down to the remmed out section at the bottom
3) Un rem the <Target Name="AfterBuild" section
4) Amend it so that it looks as follows:
<Target Name="AfterBuild" Condition="'$(Configuration)|$(Platform)' ==
'Release|AnyCPU'">
<Delete Files="$(OutputPath)\MyProject.csproj" />
<Delete Files="$(OutputPath)\MyProject.csproj.user" />
</Target>
Obviously, change MyProject.csproj to the actual name of your project... :-)
--
Mark Rae
ASP.NET MVP
http://www.markrae.net