Manipulating call to AspNetCompiler in Team Build

I cant seem to track down the .targets file where the call to AspNetCompiler task is made for the web applications in my solution during a Team Build. Is it possible to manipulate the inputs to this task at all?

The reason I ask is that my devs have implemented a solution to be able to run unit tests against web services, found here:

http://msdn2.microsoft.com/en-us/library/ms243136.aspx

http://msdn2.microsoft.com/en-us/library/ms243136.aspx#TestingWebServicesWithCassini

which means they end up adding something like the following to their unit tests:

[AspNetDevelopmentServer("Configuration",@"%PathToWebRoot%\Enterprise Library\Configuration\Tests\Configuration.Host","/Configuration.Host")]

where they define %PathToWebRoot% as an environment variable to the root of their source control structure on disk, so that they can provide a relative path after it to where the web service resides on disk. Therefore this syntax can be used for testing web services situated across

During a Team Build, %PathToWebRoot% is always evaluated as $(BinariesRoot)\_PublishedWebsites, however my web apps are always precompiled directly under that folder i.e. $(BinariesRoot)\_PublishedWebsites\Configuration.Host. For the above unit test to be able to run I need to precompile to $(BinariesRoot)\_PublishedWebsites\Enterprise Library\Configuration\Tests\Configuration.Host, but to do this I would have to change the inputs to AspnetCompiler.

Any ideas?

[2394 byte] By [simonburgess] at [2007-12-22]
# 1

MSBuild generates an in-memory project file when called on a solution, as within Team Build. It is this project file that contains the AspNetCompiler task you are looking for. If you want to have a look at this project file, you can set an environment variable named msbuildemitsolution - you will get a *.solution.proj file in the same directory as your solution file. I think you will need to call msbuild.exe directly on your solution to produce this file, rather than using Team Build.

Hope this helps get you started.

-Aaron

AaronHallberg at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...

Visual Studio Team System

Site Classified