Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to load solution after upgrading to Xamarin Studio 6

I recently upgraded Xamarin Studio to the latest version, and now I am unable to load my solution!

Upon opening the solution, the below error is displayed:

enter image description here

I have looked into the logs, and I see the following:

System.InvalidOperationException: Already bound to project

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

Thanks!

like image 494
cobey Avatar asked Jun 09 '16 15:06

cobey


1 Answers

This error appear to be associated with the following Xamarin bug report:

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

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

  1. Back up the solution
  2. Open each .csproj file associated with an extension (such as WatchKit or Today)
  3. Find the section "ProjectTypeGuids"
  4. Remove the key "FEACFBD2-3405-455C-9665-78FE426C6842"
  5. Save the file
  6. Attempt to open solution

This should solve it for iOS

This also appears to impact Android projects which contain bindings. For example:

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

Fixing the issue for Android is similar to above. If the project contains both ProjectTypesGUID: {EFBA0AD7-5A72-4C68-AF49-83D382785DCF} and {10368E6C-D01B-4462-8E8B-01FC667A7035} then do the steps below

  1. Back the solution up
  2. Open the .csproj file
  3. Find the section "ProjectTypeGuids"
  4. Remove the key "EFBA0AD7-5A72-4C68-AF49-83D382785DCF"
  5. Save the file
  6. Attempt to open solution

Thanks!

Hope it helps :)

like image 85
cobey Avatar answered Nov 03 '22 13:11

cobey