在之前的开发中,常常因为要为一个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 ...
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 ...
ASP.NET Web API 自动生成帮助文档 ASP.NET Web API 是一个基于HTTP的框架,用于构建 RESTful 风格的 Web API。随着项目的发展,文档的重要性日益突出。如何将注释自动生成帮助文档成为 ASP.NET Web API 开发中的一...
《构建自己的ASP.NET 4网站使用C#与VB:第四版》是一本全面而深入的指南,旨在帮助读者从零开始构建ASP.NET 4网站,同时掌握C#和VB编程语言的基础知识。本书由Cristian Darie、Wyatt Barnett和Tim Posey共同撰写,自...
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测试可用!
ASP.NET Web项目的安装包制作是将开发完成的Web应用程序打包成易于部署的形式,以便在不同的服务器上快速安装和运行。这个过程涉及到多个步骤,包括构建、发布、打包和配置。以下将详细介绍这些步骤: 1. **项目...
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.
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...
ASP.NET Core 6 MVC+SQLite 示例项目是一个现代Web应用程序开发框架的应用实例,它结合了ASP.NET Core 6的最新特性,MVC(Model-View-Controller)设计模式以及SQLite数据库。这个项目是在Visual Studio 2022环境下...
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, ...
Cassini是一个小型的、内置的ASP.NET Web服务器,主要用于开发和测试目的。它是由微软的开发团队设计的,提供了一种便捷的方式,允许开发者在本地计算机上运行和调试ASP.NET应用程序,而无需安装完整的IIS(Internet...
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 ...