Failed to load solution after upgrading to Xamarin Studio 6

I recently updated Xamarin Studio to the latest version, and now I can’t download my solution!

After opening the solution, the following error is displayed:

enter image description here

I looked through the logs and see the following:

System.InvalidOperationException: Already bound to project 

Has anyone seen a similar error, or does anyone have a solution?

Thanks!

+5
source share
2 answers

This error appears to be related to the following Xamarin error message:

https://bugzilla.xamarin.com/show_bug.cgi?id=41565

If you can try the following workaround, it should allow you to open the project.

  • Backup solution
  • Open each .csproj file associated with the extension (e.g. WatchKit or Today)
  • Find the "ProjectTypeGuids" section
  • Remove the key "FEACFBD2-3405-455C-9665-78FE426C6842"
  • Save file
  • Trying to open a solution.

That should solve it for iOS

This also affects Android projects that contain bindings. For instance:

Given a test project (Test.csproj) with two ProjectTypesGUIDs: {EFBA0AD7-5A72-4C68-AF49-83D382785DCF} and {10368E6C-D01B-4462-8E8B-01FC667A7035}, the project cannot load. This is because the first identifier corresponds to a regular Android project. The second is for the Android binding library project. The problem can be solved by removing the GUID {EFBA0AD7-5A72-4C68-AF49-83D382785DCF} from .csproj

The fix for Android is similar to the above. If the project contains both ProjectTypesGUID: {EFBA0AD7-5A72-4C68-AF49-83D382785DCF}, and {10368E6C-D01B-4462-8E8B-01FC667A7035}, perform the following steps

  • Bring the solution up
  • Open the .csproj file
  • Find the "ProjectTypeGuids" section
  • Remove the key "EFBA0AD7-5A72-4C68-AF49-83D382785DCF"
  • Save file
  • Trying to open a solution.

Thanks!

Hope this helps :)

+5
source

My xamarin project was done in windows, I copy Mac. But could not open the same error. I dissolve in it. Open the solution from the windows of the visual studio. and right-click and then open xxmanager (I don’t know the name of the English menu, short abbreviation, possibly β€œo”) and check the IOS build. and copy all solutions and project files to the MAC. Then repeat the open solution. good luck

0
source

All Articles