Bug 3742 - [New Resolver]Find references fails to find references in another project when files are open
Summary: [New Resolver]Find references fails to find references in another project whe...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-03-03 12:18 UTC by Mansheng
Modified: 2012-03-03 13:40 UTC (History)
1 user (show)

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:

Description Mansheng 2012-03-03 12:18:20 UTC
When finding references in the solution, if a file in another project is open and it it contains a reference, the program cannot find the reference.

File 1:
namespace test
	public class Foo
		public int Bar
		{ get; set; }
File 2 in another project:
using test;
namespace test2
	class MainClass
		public static void Main (string[] args)
			var f = new Foo ();
			f.Bar = 1;

Right click on the declaration of Bar to find references:
If the second file is closed, the reference in it is displayed in the result.
If it is open, the reference is not displayed.
Comment 1 Mansheng 2012-03-03 12:23:10 UTC
See https://github.com/mono/monodevelop/pull/161 for a possible fix
Comment 2 Mike Krüger 2012-03-03 13:40:54 UTC
Patch taken, thanks