Bug 31111 - Duplicate assemblies in Edit References dialog on Windows
Summary: Duplicate assemblies in Edit References dialog on Windows
Status: CONFIRMED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Management ()
Version: 5.9
Hardware: PC Windows
: Normal minor
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-06-15 12:03 UTC by Matt Ward
Modified: 2015-09-02 10:55 UTC (History)
1 user (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 for Bug 31111 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:
Status:
CONFIRMED

Description Matt Ward 2015-06-15 12:03:34 UTC
The Edit References dialog on Windows shows duplicate assemblies in the All and Packages tab. One example is gtk-sharp. This does not affect Xamarin Studio on the Mac.

Debugging the code it seems that on Windows the duplicate assembly is from the Client profile. Filtering the list of assemblies down using the search text box and then putting a breakpoint on store.AppendValues in the PackageReferencePanel we see:

gtk-sharp (2 items):

SystemAssembly.Location: "C:\\Program Files (x86)\\GtkSharp\\2.12\\lib\\gtk-sharp-2.0\\gtk-sharp.dll"
SystemPackage.Description: "GtkSharp"
SystemPackage.TargetFramework: .NETFramework,Version=v4.0

SystemAssembly.Location: "C:\\Program Files (x86)\\GtkSharp\\2.12\\lib\\gtk-sharp-2.0\\gtk-sharp.dll"	string
SystemPackage.Description: "GtkSharp"
SystemPackage.TargetFramework: .NETFramework,Version=v4.0,Profile=Client


This is not specific to the gtk-sharp assemblies. Looking at EnvDTE100 we see 3 assemblies 2 of which are duplicates based on their filename.

EnvDTE100 (3 items - 1 duplicate):

SystemAssembly.Location: "c:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\PublicAssemblies\\envdte100.dll"	string
SystemPackage
SystemPackage.Description: "Public Assemblies (Common Files)"
SystemPackage.TargetFramework: .NETFramework,Version=v2.0

SystemAssembly.Location: "c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\PublicAssemblies\\EnvDTE100.dll"
SystemPackage.Description: "Public Assemblies v10.0"
SystemPackage.TargetFramework: .NETFramework,Version=v4.0

SystemAssembly.Location: "c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\PublicAssemblies\\EnvDTE100.dll"
SystemPackage.Description: "Public Assemblies v10.0"
SystemPackage.TargetFramework: .NETFramework,Version=v4.0,Profile=Client	MonoDevelop.Core.Assemblies.TargetFrameworkMoniker


Visual Studio does not show assemblies with the same filename. So VS will show 1 assembly for gtk-sharp and 2 for EnvDTE100.