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'.
I am using Visual Studio 2008 SP 1.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With