How can I build an ASP.NET web application from the command line?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
- How to dynamically load partial view Via jquery aj
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- Handling ffmpeg library interface change when upgr
- What is the best way to create a lock from a web a
To build a solution directly,
You'll find MSBuild in the Microsoft.NET folder in your Windows directory.
You may also want to pre-compile your Web site. Instructions for that are on MSDN here. If you use the Web Deployment project node (detailed at the bottom) then the deployment will happen automatically when you run
msbuild
on the solution file.This is a round about way to do it, but you can use the MSBuild task as part of an msbuild project:
built with
msbuild
projectname
.proj
from the command line.This may seem like overkill, but you can then add extra stuff into the project (like restarting websites, zipping files, Virtual machine control even!, code coverage) that can help you setup and test the project.
http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/2ca80dfd-b7d7-4e09-98ff-891b1570f4db
As dumb as I might look, I have used "aspnet_compiler.exe" for compiling/deploying projects
Try this in a .bat file, replace v4.0.30319 with the appropriate version:
Take a look at the devenv.exe /Build switch, you give it a solution file to build, e.g.
If you have more complex build requirements then look into MSBuild.