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


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


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

Täida nõutavad väljad või kliki ikoonile, et sisse logida:

WordPress.com Logo

Sa kommenteerid kasutades oma WordPress.com kontot. Logi välja / Muuda )

Twitter picture

Sa kommenteerid kasutades oma Twitter kontot. Logi välja / Muuda )

Facebook photo

Sa kommenteerid kasutades oma Facebook kontot. Logi välja / Muuda )

Google+ photo

Sa kommenteerid kasutades oma Google+ kontot. Logi välja / Muuda )

Connecting to %s

Blog at WordPress.com.