Specifying precompilation target directory on the command line

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have a VS2005 Web Site that's giving me some trouble.

Our process model requires that all shipped applications be compiled on a
dedicated compile box, straight from version control, without human
intervention.

The guts of it is a batch file that checks out the source from version
control, then does a call to a build batch file, that is responsible for
doing the compile.

For websites, what we want to do is to create a precompiled version of
the website in a directory structure parallel to that created by the
check-out.

The problem: the web site accesses a COM dll, and when I run the
aspnet_compiler, I get errors:

aspnet_compiler -p Project -v / Project-published
"CS0246: The type or namespace name ... could not be found".

OTOH, if I run msbuild, I do not get that error:

msbuild project\project.sln

Which would be fine, except that when I run msbuild, it places the
precompiled version into folder that is specified in Property Pages of
the project, and it restricts that to an absolute path.

What I would prefer is a way to tell the aspnet_compiler to use a
different target directory, by specifying an argument on the msbuild
command line.

But I've not been able to figure how to do that out.

--
A lot of people have asked me how the Mad Scientists' Club first got
organized. And I usually ask them, "What do you mean, organized?" Things
like our club don't really get organized. They just sort of happen.
- Bertrand R. Brinley, "The Big Kerplop!"
.



Relevant Pages

  • Re: web site vs web application
    ... The web site template does a single compile per page. ... Profile provider, but the default, out of the box, often fails - NOTE: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Migration from 1.1 to 2.0.
    ... This behavior comes with the VS 2005 Web Site project. ... and will compile all your pages into a single dll file. ... order to access methodes containing in each WebForm. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VBC syntax used by VS2003
    ... the project files are msbuild files. ... the vs build configuration setting controls the paramteres ... I'm looking for all the parameters needed for issuing a vbc command at ... it takes some time to compile and start. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: convert PAL video to NTSC video
    ... Mencoder programs by going to the Mplayer web site. ... If you have the Apple Developer Toolkit, you can compile your ... it is a GUI front end for mencoder and mpeg2enc which make life a whole lot easier. ...
    (comp.sys.mac.apps)
  • Re: Where are project files?
    ... Also, even when that compile happens, each page is ... There was immediate "grumbling" from VS 2003 developers, ... since each page is effectively its own island in a web site (no more ... The code is not within the aspx pages. ...
    (microsoft.public.dotnet.framework.aspnet)