I use msbuild to automatically build and package a site ready for deployment. When I compile and then publish my project through Visual Studio 2008, everything works fine.
However, when I use msbuild, I get errors because AspNetCompiler tries to compile aspx and ascx files that are not included in my .csproj but still exist in version control.
I know that I can just remove them from version control, but can someone tell me why these files are compiling?
Here is my msbuild task.
<AspNetCompiler
TargetPath="$(PackageDir)\Web"
VirtualPath="/"
PhysicalPath="$(buildDirectory)\Web"
Force="true"
/>
Thank!
source
share