views:

725

answers:

2

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.

+1  A: 

If you were to do it manually, I would take all the files and add them back to a new project file one by one.

Gabriel McAdams
Yep, I should have thought of that first.
CountCet
+1  A: 

But I hope that is not a right solution. You need to find "< Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />" is available in the Project file.If not add it to the end.

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

Shankar
In case of SharePoint 2007 project that uses the *stsdev.exe* utility adding `<Import Project="DeploymentFiles\Microsoft.SharePoint.targets" />` in the *.csproj* file may help.
Marek Grzenkowicz