Atomic mass Thanks for the tip. It did answer part of my question.
hongping- this is a web service project. Global.asax- is an empty shell.
Once I took it out it did the same to my service.asmx file
If anyone is interested, here is the Fix- It turns out that Asp_net compiler wants a "bin" folder with all the dll references inside the project (the one you are tyring to build).
But that was not happening when I just ran Asp_Net compiler.
Here is my script with the fix (this comes after you got the project to build):
ProjectName- the name of the project you are working on
DLL_Destination- the path to the dll your project is using.
$(SolutionRoot)- you might need to declare the property for this- e.g- c:\build... (to create a property refer-> http://msdn2.microsoft.com/en-us/library/63ckb9s9.aspx)
$(WebDirectory)- you need to declare this property. e.g. c:\Build\web...
<MakeDir Directories="$(SolutionRoot)\ProjectName\bin" Condition="!Exists('$(SolutionRoot)\ProjectName\bin')"/>
<Exec Command="xcopy /Y /R %22DLL_Destination\*.dll%22 %22$(SolutionRoot)\ProjectName\bin%22" ContinueOnError="true" />
<AspNetCompiler Debug="false" VirtualPath="/ProjectName" PhysicalPath="$(SolutionRoot)\ProjectName" TargetPath="$(WebDirectory)\ProjectName" Updateable="false" />
(NOTE: If any of you know a better way to do this, let me know. thanks)