Bug 4974 - Can't debug second project when first project is unloaded
Summary: Can't debug second project when first project is unloaded
Status: RESOLVED DUPLICATE of bug 3328
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-09 13:46 UTC by Matthew Leibowitz
Modified: 2016-08-03 15:25 UTC (History)
5 users (show)

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


Attachments
Showing the difference when the project is unloaded (341.80 KB, image/jpeg)
2012-05-09 15:44 UTC, Matthew Leibowitz
Details


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 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 DUPLICATE of bug 3328

Description Matthew Leibowitz 2012-05-09 13:46:56 UTC
When I create a new solution and add two Android Application projects, I can't debug the second project if I unload the first project.

The solution file starts with these lines:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidApplication1", "AndroidApplication1\AndroidApplication1.csproj", "{B4B69369-5D90-44F6-A9D4-59C3355DD9BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidApplication2", "AndroidApplication2\AndroidApplication2.csproj", "{D03DCF0D-EFDA-4B89-B11B-08986A663CE3}"
EndProject

If I unload AndroidApplication1, I can't debug AndroidApplication2 - the debug button is disabled.
But, if I swap the lines to this:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidApplication1", "AndroidApplication1\AndroidApplication1.csproj", "{B4B69369-5D90-44F6-A9D4-59C3355DD9BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidApplication2", "AndroidApplication2\AndroidApplication2.csproj", "{D03DCF0D-EFDA-4B89-B11B-08986A663CE3}"
EndProject

All is well, but now I can't debug AndroidApplication2 when AndroidApplication1 is unloaded.

Also, when there is more than Application in the solution, the plugin deploys all of them to the device - when both are loaded that is. But this probably is for another bug report...
Comment 1 Jonathan Pobst 2012-05-09 15:24:17 UTC
I cannot reproduce this.  What is the difference between your first paste and the second paste?

Beginning in 4.1.x, the plugin will deploy what you have selected as Deploy in configuration manager:

http://docs.xamarin.com/android/Releases/Mono_For_Android_4/Mono_for_Android_4.1.0#Non-modal_Deployment
Comment 2 Matthew Leibowitz 2012-05-09 15:44:09 UTC
Created attachment 1839 [details]
Showing the difference when the project is unloaded

Attached a screenshot of the difference to the available options when the first project (that was created with the solution) is unloaded.
Comment 3 Matthew Leibowitz 2012-05-09 15:46:34 UTC
Sorry about the two lines here is the correct:

First: (App1 then App2)
I cannot debug 2 when 1 is unloaded

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidApplication1",
"AndroidApplication1\AndroidApplication1.csproj",
"{B4B69369-5D90-44F6-A9D4-59C3355DD9BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidApplication2",
"AndroidApplication2\AndroidApplication2.csproj",
"{D03DCF0D-EFDA-4B89-B11B-08986A663CE3}"
EndProject

Second: (App2 then App1)
I cannot debug 1 when 2 is unloaded

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidApplication2",
"AndroidApplication2\AndroidApplication2.csproj",
"{D03DCF0D-EFDA-4B89-B11B-08986A663CE3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidApplication1",
"AndroidApplication1\AndroidApplication1.csproj",
"{B4B69369-5D90-44F6-A9D4-59C3355DD9BA}"
EndProject

Let me know if I have to make anything clearer of you need more info
Comment 4 Jonathan Pobst 2012-05-09 16:38:19 UTC
Thanks, your screenshot made me realize that I think the issue may actually be the periods:

https://bugzilla.xamarin.com/show_bug.cgi?id=3328

Sometimes when I ask VS for the project file name (often when it has periods), VS throws me a NotImplementedException instead, which was killing my "IsDebuggable ()" logic.  So I had to code around that VS issue.

I am 99% sure this is already fixed for 4.2.  If you still get this when 4.2 comes out, please reopen the bug and I can dig deeper.

Thanks!

*** This bug has been marked as a duplicate of bug 3328 ***