…meie igapäevast IT’d anna meile igapäev…

2011-01-18

The target "PipelinePreDeployCopyAllFilesToOneFolder" does not exist in the project: solution

VS_error

When you convert a Visual Studio 2008 or 2005 project to Visual Studio 2010 – and then try to use the built-in deploy to a folder, you will get a cryptic error:

The target “PipelinePreDeployCopyAllFilesToOneFolder” does not exist in the project.

This seems to be a conversion bug – Visual Studio does not include Microsoft.WebApplication.targets to your .csproj file correctly. The solution is to fix the project file manually. Open your .csproj file in Notepad or any other text editor and find lines:

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="'$(Solutions.VSVersion)' == '10.0'" />
  <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" Condition="'$(Solutions.VSVersion)' == '9.0'" />

The issue is “Condition="'$(Solutions.VSVersion)' == '10.0'"” conditional on the first line. Just remove it, so that the line will be <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />, save the file and reload the project in the Visual Studio if you had it open (VS should ask to reload the project anyway then). And you are good to go, the deploy works now.

2 kommentaari »

  1. Great blog post here.

    kommentaar kirjutas dotnetchris — 2011-10-10 @ 20:49:29 | Vasta

  2. Thanks you so much!

    kommentaar kirjutas André — 2012-06-29 @ 16:29:20 | Vasta


RSS feed for comments on this post. TrackBack URI

Lisa kommentaar

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Muuda )

Twitter picture

You are commenting using your Twitter account. Log Out / Muuda )

Facebook photo

You are commenting using your Facebook account. Log Out / Muuda )

Google+ photo

You are commenting using your Google+ account. Log Out / Muuda )

Connecting to %s

Create a free website or blog at WordPress.com.