`
jeffrey_zhang
  • 浏览: 19430 次
  • 性别: Icon_minigender_1
  • 来自: 南京
最近访客 更多访客>>
社区版块
存档分类
最新评论

Build Asp.net Web Site By Command Line(Auto Build)

阅读更多

 

      在之前的开发中,常常因为要为一个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(英文pdf)

    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 ...

    ASP.NET 4.5入门经典:涵盖C#和VB.NET(第7版) 源码

    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编程知识】ASP.NET Web API如何将注释自动生成帮助文档.docx

    ASP.NET Web API 自动生成帮助文档 ASP.NET Web API 是一个基于HTTP的框架,用于构建 RESTful 风格的 Web API。随着项目的发展,文档的重要性日益突出。如何将注释自动生成帮助文档成为 ASP.NET Web API 开发中的一...

    Build Your Own ASP.NET 4 Web Site Using C# & VB 4th Edition

    《构建自己的ASP.NET 4网站使用C#与VB:第四版》是一本全面而深入的指南,旨在帮助读者从零开始构建ASP.NET 4网站,同时掌握C#和VB编程语言的基础知识。本书由Cristian Darie、Wyatt Barnett和Tim Posey共同撰写,自...

    [ASP.NET] ASP.NET 4.5 入门经典 (C# & VB 语言实现) (英文版)

    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 ...

    DayPilot Pro for ASP.NET WebForms 7.9 SP4 crack (build 7.9.3316)

    破解了2014.11月最新版本DayPilot Pro for ASP.NET WebForms 7.9 SP4 (build 7.9.3316) Visual Studio 2013 UP4测试可用!

    asp.Net Web项目安装包制作

    ASP.NET Web项目的安装包制作是将开发完成的Web应用程序打包成易于部署的形式,以便在不同的服务器上快速安装和运行。这个过程涉及到多个步骤,包括构建、发布、打包和配置。以下将详细介绍这些步骤: 1. **项目...

    ASP.NET Web API 2, 2nd Edition(英文pdf)

    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.

    Learning ASP.NET Core 2.0: Build modern web apps with ASP.NET Core 2.0, MVC

    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.

    Beginning ASP.NET 2.0 in C# 2005:From Novice to Professional

    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 core6 MVC+SQLite例子

    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 ASP.NET Core 1.1 Web API For Beginners How To Build a Web API

    .Net Webservice Studio (Build on .net 4.5) source code

    3. **ASMX**: ASMX(ASP.NET Web Services)是.NET Framework早期版本中创建Web服务的主要方式。它使用SOAP协议进行通信,但不支持HTTP之外的传输协议。 4. **WCF**: Windows Communication Foundation是.NET ...

    ASP.NET Core Succinctly

    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服务器

    Cassini是一个小型的、内置的ASP.NET Web服务器,主要用于开发和测试目的。它是由微软的开发团队设计的,提供了一种便捷的方式,允许开发者在本地计算机上运行和调试ASP.NET应用程序,而无需安装完整的IIS(Internet...

    .Net Webservice Studio (Build on .net 4.5)

    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

    ASP.NET Web API 2(Apress,2ed,2014)

    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.

Global site tag (gtag.js) - Google Analytics