How to publish to server using aspnet compiler

Currenlty I am trying to post the usinf aspnet compiler using a batch file

start / b C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_compiler.exe -p "C: \ cc \ titr \ code \" TargetPath = "C: \ cc \ titr \ code \ deploy \" Force = "true" Debug = "true"

Giving me error 1010 the file path is not valid. Any idea where I am doing wrong. because the paths are right

+1


a source to share


1 answer


Take a look at Rick Strahl's utility for managing the pre-compilation process here: http://www.west-wind.com/tools/aspnetcompiler.asp . I have to say that getting the command line arguments is okay to make aspnet_compiler happy is not easy. It is very important that you have all your slashes and spaces in the right place! Using the West Wind ASP.NET 2.0 Compiler Utility will definitely make this task easy for you!

Also take a look at my series of articles on how to create a StackOverflow-based Knowledge Exchange. In this series, I detail the local build processes and continuous integration. The CI article addresses this topic directly (coming soon!). http://dotnetslackers.com/projects/StackOverflowInspiredKnowledgeExchange/

In your case, you can try:



C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -p "C:\cc\titr\code" -v / "C:\cc\titr\code\deploy"

      

You had forward slashes that the compiler specifically doesn't like. I also changed your TargetPath to the -v argument. I don't think TargetPath is an argument.

+2


a source







All Articles