views:

65

answers:

1

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.

+1  A: 

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.

Sayed Ibrahim Hashimi
Thanks Sayed, your articles are very helpfull. In addition I found this article: http://blogs.msdn.com/b/webdevtools/archive/2010/02/09/how-to-extend-target-file-to-include-registry-settings-for-web-project-package.aspx
johan
@johan, yeah should have added that link especially cuz I'm on that team! I've updated the entry.
Sayed Ibrahim Hashimi