简体   繁体   中英

ASP.NET 4 Deployment MSBUILD

I'm using VS2010 with the Web Deployment Projects to create a release package for my web application. In WDP I have created some build tasks to for example transform the web.config, create some directories and remove some files.

Now I've migrated the web application to ASP.NET 4 and I've been looking at this feature in VS2010 called Package/Publish. Is it possible to use this feature and add custom MSBUILD tasks, like with WDP?

I would like to get rid of the WDP plugin if the same is possible with a default VS2010 setup.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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