Bug 12903 - Workspaces duplicates projects
Summary: Workspaces duplicates projects
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Management ()
Version: 4.1
Hardware: PC Windows
: Normal normal
Target Milestone: (C7)
Assignee: Matt Ward
URL:
Depends on:
Blocks:
 
Reported: 2013-06-26 12:07 UTC by Ian
Modified: 2015-12-15 13:12 UTC (History)
5 users (show)

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

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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Ian 2013-06-26 12:07:32 UTC
How to reproduce

1) Open a workspace with a couple ofsolutions
2) Each solution should point to at least 1 common project all projects use
3) Make a meaningful change to the shared project (add a file)
4) The Workspace now doubles all the projects. If you close and reload the workspace it's fine again.

This is a problem because if your workspace has 5 or 6 solutions all using a common project, then suddenly the workspace shows 2x the number of projects (everything is duplicated)
Comment 1 Ram Chandra 2015-10-20 11:32:12 UTC
I have checked this issue and able to reproduce it  To reproduce this issue I have followed steps:

1. Create new workspace.
2. Add new solution to it.
3. Add two android projects to solution created.
4. Add shared project to any one android project.
5)  Close the XS and again re-opens it.
6)  Projects count reaches to four.


Screencast:  http://www.screencast.com/t/PCThcHpqdO

IDE Logs:  https://gist.github.com/anonymous/6d0ecb8b1ad1109bda91

Environment info:
 

=== Xamarin Studio ===

Version 5.9.7 (build 22)
Installation UUID: 5aee9e7c-04d2-4896-b80a-a918340ae634
Runtime:
	Mono 4.0.4 ((detached/d481017)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400040004

=== Apple Developer Tools ===

Xcode 7.0 (8227)
Build 7A220

=== Xamarin.Android ===

Version: 5.1.7.12 (Indie Edition)
Android SDK: /Users/360_macmini/Desktop/setup/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
		5.1   (API level 22)
		6.0   (API level 23)
Java SDK: /usr
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.iOS ===

Version: 9.0.1.29 (Indie Edition)
Hash: 1d27ac2
Branch: master
Build date: 2015-09-25 18:08:44-0400

=== Xamarin.Mac ===

Version: 2.0.2.111 (Indie Edition)

=== Build Information ===

Release ID: 509070022
Git revision: 6bd1f169df44ca96addf8a035316c535a4fa46fa
Build date: 2015-09-30 12:30:15-04
Xamarin addins: 1c3e5c0859bdfec0ecd481a57ad6c03bc22f5536

=== Operating System ===

Mac OS X 10.10.5
Darwin 360-MACMINIs-Mac-mini-2.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64

I
Comment 2 Matt Ward 2015-12-15 13:12:24 UTC
Unable to reproduce this with Xamarin Studio 6.0. My repro steps:

1) Create a new workspace.
2) Create two solutions each with their own C# class library project.
3) Create another C# class library project (call it shared) into one of the solutions.
4) Add the class library project created in 3) to the other solution.
5) Change the references so that each class library originally created in 2) now references the shared project.
6) Add a file to the shared project.

I also tried the above without creating a workspace but opening two solutions into the IDE without closing the first solution. Again there was no duplication of the projects when adding a file to the shared project.

The test in comment c#1 does not seem to follow the same steps as the original bug report, nor does the screencast show any duplicated projects.