Bug 5950 - MonoDevelop does not accurately refresh references without restarting
Summary: MonoDevelop does not accurately refresh references without restarting
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 3.0.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-07-02 14:45 UTC by PJ
Modified: 2015-08-21 05:54 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 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 FIXED

Description PJ 2012-07-02 14:45:34 UTC
Steps:
Create new MFA app
Right click the solution, add new project
Select MFA library project
Right click the MFA library project, add new file
Select C# class
Give the class a method like:
    public void DoSomething()
    {
        Console.WriteLine("sup")
    }
You should now have a 2 project solution, the library project should have the new added class.
Add the library project as a reference to the main project
Add a using statement for the library to the activity1.cs file in the main project
Create a new instance of the new class and call the DoSomething method.

Expected behavior:

App should build and 'sup' should be output to the console

Actual behavior:

Build fails - MD thinks we did not add the reference to the library (we did)
To fix this, restart MD. Without any other changes the build will succeed.




Failed case - referencing a class in a library:
 http://screencast.com/t/Djty3uWaH

This next one also shows that I can get it to say that it's building successfully when it shouldn't (after I delete the reference): http://screencast.com/t/l4DM7gZdzC

Seen with:

MD 3.0.3.3 (RC1, build 2)
MFA 4.2.3 (stable)
Windows 7
Comment 1 PJ 2012-07-05 10:46:31 UTC
I think you said this was fixed lluis, is that right?
Comment 2 Mikayla Hutchinson [MSFT] 2012-07-05 14:45:09 UTC
Here is the commit on the branch:
https://github.com/mono/monodevelop/commit/416c09729c9fae5b226d107e57bde3ac6a2153ff

Though I think with this fix there will be some cases where it will still fail, for example project A references project B, and the "output path" project option of "B" is changed, then A will not be refreshed and will not pick up the updated B.
Comment 3 Lluis Sanchez 2015-08-21 05:54:48 UTC
Closing.