Search code examples
.netsvnweb-deploymentaspnet-compiler

How do you handle excluded files with aspnet_compiler?


I'm trying to use aspnet_compiler to move a project that has already compiled from one location to another. I'm using Subversion for revision control.

The process basically gets all the code out of subversion, does a build, then calls aspnet_compiler.

My problem comes into being when I've got an excluded ascx file. This file is part of the latest code, but the normal build compiler ignores it, so no trouble. Aspnet_compiler blows up, however, because it cannot find the code behind for that particular control.

I'm not sure if

  • I'm doing this right;
  • there's a way to just get the correct file tree from Subversion
  • There's an easier way; or
  • this is expected, and I need to delete excluded files every time.

I'd appreciate any help.

Tom


Solution

  • This is expected: Aspnet_compiler.exe compiles all files in the application and does not look at the project file. Thus, it does not have any notion of an excluded file.

    Babak Naffas's suggestion of deleting the file is probably the easiest way of dealing with the file, rather than manually deleting it (or scripting its deletion) each time.