Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Target "build" does not exist in the project for Visual Studio

I'm checking out code for a project where contributors use different dev tools for coding in c sharp (C#). My .csproj file was manipulated by someone using Sharp develop and now I get 'The target "build" does not exist in the project'.

  • How can I correct this?

I am using Visual Studio 2008 SP 1.

like image 876
CountCet Avatar asked Jan 09 '10 23:01

CountCet


1 Answers

The accepted answer is a workaround, not a solution. You need to open the .csproj file for editing in a text editor and ensure the following line is present in there

<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 

If not add it to the end.

Note: For VS2008, this may be $(MSBuildToolsPath)

like image 170
Shankar Avatar answered Sep 18 '22 13:09

Shankar