Bug 14056 - Infinite loop opening workspace when multiple solutions modify same project
Summary: Infinite loop opening workspace when multiple solutions modify same project
Status: NEW
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 4.1.8
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Lluis Sanchez
Depends on:
Reported: 2013-08-17 12:49 UTC by Ian
Modified: 2013-08-29 15:39 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

photo (331.45 KB, image/png)
2013-08-17 12:49 UTC, Ian
What solution to bug looks like (132.33 KB, image/png)
2013-08-28 23:03 UTC, Ian

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 14056 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Ian 2013-08-17 12:49:17 UTC
After upgrading to the newest studio, when ever I try to open a Workspace with multiple solutions, I get an initifine number of dialogs appear. See image.

The only way to cancel is to force the Studio to stop via Activity Monitor. This bug has rendered Studio no longer working for any workspace.
Comment 1 Ian 2013-08-17 12:49:40 UTC
Created attachment 4656 [details]
Comment 2 Ian 2013-08-28 22:31:19 UTC
I found the cause.

All my solutions use a common Common.csproj project, this project has components. Components are not project specific, so when the workspace opens, it for some reason tries to edit Common.csproj, so that causes other solutions in the Workspace to say the error in the attached image.

Projects should not share the Component of the app they are in as if they are in another app too, it fails with this error.

For now I manually pulled the .dlls out to a special folder then manually pointed the Component there and it now works.
Comment 3 Ian 2013-08-28 23:03:02 UTC
Created attachment 4737 [details]
What solution to bug looks like
Comment 4 Mikayla Hutchinson [MSFT] 2013-08-29 15:35:11 UTC
So essentially the problem is that you load a workspace with the same project included twice in the same solution. One project "fixes" itself on load because it has incorrect solution-dependent values, and saves itself. This causes the other instance of the project to to reload, and it now has incorrect values, fixes itself, etc.

Not sure of an easy general fix for this.
Comment 5 Ian 2013-08-29 15:39:24 UTC

a workspace has many solutions, each is a different app.

However, each solution contains a set of common projects (themes, localization,

It is when there is a shared common.csproj (not .sln) that there is an issue.