在之前的开发中,常常因为要为一个Asp.net Web Site编译一个新的版本,不得不重新打开VS2008,然后选择整个Solution去编译,最后Publish一个新的版本。
而最近研究公司的同一个Team Member TOI的两个Tools。因为这两个Tools都是通过Auto Build方式进行的。每次修改代码后,执行Auto Build 的bat文件,所有的build和Package一次性完成,而且效率很高。既然用C++写的这两个Tool可以,为什么Asp.net Web Site不可以呢?!
花了一个小时研究了一下,原来发现没什么神奇的,只要用到Dos命令+VS Complier + Dot net Framework就可以完成一个Asp.net Web Site从build到package整个流程。
Build Enviroment(required):
1. Operation System(Windows) -- 这个是废话了^_^
2. VS2008 (这个根据项目需要自己选择编译器,我这里使用VS2008开发的Project)
3. Dot Net Framework 2.0 (这个也根据自己的Project的requirement确定)
Build process:
1. 为VS2008设置环境变量。(Build.bat 里使用到了devenv)
2. 运行build bat文件
Build bat文件内容
@echo Make Release Build Project of "Trend Micro SilkCentral Test Manager Report System"
set aFile=TSR3.0-%date:~6,4%%date:~3,2%%date:~0,2%
set AspCompilerPath=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
devenv .\TSR.sln /rebuild Release
%AspCompilerPath%\Aspnet_compiler.exe -v tsr -p TSRWeb Output\%aFile%
分享到:
相关推荐
ASP.NET Web API 2 Recipes provides you with the code to solve a full range of Web API problems and question marks that you might face when developing line-of-business applications. ASP.NET Web API 2 ...
Build Your Own ASP.NET 4 Web Site Using C# & VB 4th Edition
Shows how to build basic ASP.NET web pages and configure their server Includes information on how to add features with pre-built server controls Reveals how to design pages and make them consistent ...
Web API 2 is the latest evolution of Microsoft’s web services toolkit, which allows the creation of RESTful applications built on the ASP.NET platform. It provides a standards-based approach and a ...
Shows how to build basic ASP.NET web pages and configure their server Includes information on how to add features with pre-built server controls Reveals how to design pages and make them consistent ...
破解了2014.11月最新版本DayPilot Pro for ASP.NET WebForms 7.9 SP4 (build 7.9.3316) Visual Studio 2013 UP4测试可用!
Learn how web applications can be built efficiently using ... This book will take you through all of the essential concepts in ASP.NET Core 2.0, so you can learn how to build powerful web applications.
This book provides thorough coverage of ASP.NET, guiding you from beginning to advanced techniques, such as querying databases from within a web page and performance-tuning your site. You'll find tips...
Author: Brian Wortman, Jamie Kurtz ... This concise book provides technical background and guidance that will enable you to best use the ASP.NET Web API 2 Framework to build world-class REST services.
Asp.net Web Api(Build Restful web applications and services on the .Net framework),不错的资源。
ASP.NET Core 1.1 Web API For Beginners How To Build a Web API ASP.NET Core 1.1 Web API For Beginners How To Build a Web API ASP.NET Core 1.1 Web API For Beginners How To Build a Web API
By learning the foundations of the library and understanding the new versions of ASP.NET MVC and Web API, you’ll be equipped with everything you need to build .NET web applications on Windows, Mac, ...
top of this structure: ASP.NET Web Forms and ASP.NET MVC. These two approaches both rest on ASP.NET and depend on common functionality that is made available through ASP.NET. Visual Studio 2015 is the...
Test .NET web service application. Build on .net 4.5. Official version (.net 2.0) my cannot run on win 2012+: http://webservicestudio.codeplex.com/releases/view/13915
The ASP.NET MVC Framework has always ... This concise book provides technical background and guidance that will enable you to best use the ASP.NET Web API 2 Framework to build world-class REST services.
ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. It is an ideal platform for building RESTful ...
ASP.NET-[论坛社区]盛天BBS.NETv1.1Build0519.net0519.zip
To make your ASP.NET MVC applications the best they can be, you need to fully understand the platform features and know how they can be used to build effective and elegant MVC framework applications....
Best-selling author Adam Freeman explains how to get the most from Web API 2 by building on the foundation of the MVC Framework and the ASP.NET platform. He starts with the nuts-and-bolts and shows ...