Xamarin Studio / Visual Studio Broken - The target project "Build" does not exist in the project. (MSB4057)

I start working with Xamarin Studio after working with Visual Studio (the last in 2012) for several years. However, someone through importing projects and launching new Android projects I managed to break Xamarin Studio. Now when I start a new project, I get the following error:

The target "Build" does not exist in the project. (MSB4057) 

Stages

Starting a new project

Build result

I tried to restore my installation, but it did not matter. I tried to reinstall, but that didn't matter. Except for a complete uninstall and reinstall of what parameters do I have?

I am using Xamarin Studio 4.2.2 and can confirm that I now have the same problem in Visual Studio 2012. Although I can manually create projects using MSBuild.exe, but other than that, both IDEs are broken.

+7
c # windows-7 visual-studio-2012 xamarin xamarin-studio
source share
2 answers

I really managed to track down the problem to the problem with installing the .Net infrastructure, anyway, playing with the build settings inside the Xamarin IDE, I messed it up. To diagnose this problem in Visual Studio 2012, I turned on the MSBuild build settings in Diagnostic;

Visual studio option

Then a problem was discovered with C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets and using the DIFF tool that isolates the parameters from the machine that had the build workflow - copying the missing record.

Missing build setting

This seems to be a bug in Xamarin Studio, when time permits, I have to reproduce this for the bug report.

+4
source share

Xamarin Studio does not open any MSBuild target files (even in readonly mode) as part of normal use. The only thing that opens these files is the build mechanism provided by Microsoft, which uses XS and VS.

What could have happened is that VS / XS opened the target file when the build error double-clicked in the error bar, and then you accidentally changed and saved the file inside the IDE. However, this is unlikely, but this is the only thing I can think of.

Another alternative is to deliberately edit these files, which is probably even less likely;)

+1
source share

All Articles