简体   繁体   English

ASP.NET 4部署MSBUILD

[英]ASP.NET 4 Deployment MSBUILD

I'm using VS2010 with the Web Deployment Projects to create a release package for my web application. 我将VS2010与Web部署项目结合使用,以为Web应用程序创建发行包。 In WDP I have created some build tasks to for example transform the web.config, create some directories and remove some files. 在WDP中,我创建了一些构建任务,例如转换web.config,创建一些目录和删除一些文件。

Now I've migrated the web application to ASP.NET 4 and I've been looking at this feature in VS2010 called Package/Publish. 现在,我已经将Web应用程序迁移到ASP.NET 4,并且在VS2010中一直在研究称为Package / Publish的功能。 Is it possible to use this feature and add custom MSBUILD tasks, like with WDP? 是否可以使用此功能并添加自定义MSBUILD任务,例如WDP?

I would like to get rid of the WDP plugin if the same is possible with a default VS2010 setup. 我想摆脱WDP插件,如果默认的VS2010设置可以实现同样的功能。

Hi the package/publish features are a part of a process known as the Web Publishing Pipeline , which is captured inside of MSBuild targets & tasks. 打包/发布功能非常好,它是称为Web Publishing Pipeline的过程的一部分,该过程捕获在MSBuild目标和任务内部。 For Visual Studio 2010 Web Application Projects (WAP) the file Microsoft.WebApplication.targets & Microsoft.Web.Publishing.targets ( under %Program Files(x86)\\MSBuild\\Microsoft\\VisualStudio\\v10.0\\WebApplications ) are imported into the project file. 对于Visual Studio 2010 Web应用程序项目(WAP),文件Microsoft.WebApplication.targets和Microsoft.Web.Publishing.targets( 位于%Program Files(x86)\\ MSBuild \\ Microsoft \\ VisualStudio \\ v10.0 \\ WebApplications下 )项目文件。 If you want to customize the package/publish process you should be able to. 如果要自定义打包/发布过程,则应该可以。

Here are some links to get you started. 这里有一些链接可以帮助您入门。 If you have specific questions post them and I can take a look. 如果您有特定问题,请张贴它们,我可以看看。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM