Bug 52917 - Android Deployment fails if WiX project is contained in the same solution as Android project
Summary: Android Deployment fails if WiX project is contained in the same solution as ...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: High normal
Target Milestone: 15.1
Assignee: Bugzilla
URL:
: 52752 ()
Depends on:
Blocks:
 
Reported: 2017-02-28 22:54 UTC by Benjamin Murray
Modified: 2017-03-22 09:54 UTC (History)
7 users (show)

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


Attachments
Logs (2.49 KB, application/zip)
2017-03-22 09:54 UTC, Swati Gangrade
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:
VERIFIED FIXED

Description Benjamin Murray 2017-02-28 22:54:35 UTC
Trying to deploy an Android app fails when a WiX project is contained in the same solution. Error log below. If I unload the WiX project then I can deploy successfully.

Xamarin.VisualStudio.ProgressReport|Error|0|System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.VisualStudio.Package.Automation.OAProject.get_UniqueName()
   at Xamarin.VisualStudio.ProjectSystem.SolutionEvents.<>c__DisplayClass85_1.<GetStartupProjects>b__1(String name) in C:\d\lanes\4033\73f58d6d\source\xamarinvs\src\Core\VisualStudio\ProjectSystem\SolutionEvents.cs:line 311
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at Xamarin.VisualStudio.ProjectSystem.SolutionEvents.<>c__DisplayClass85_0.<GetStartupProjects>b__0(Project project) in C:\d\lanes\4033\73f58d6d\source\xamarinvs\src\Core\VisualStudio\ProjectSystem\SolutionEvents.cs:line 311
   at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Xamarin.VisualStudio.ProjectSystem.SolutionEvents.GetStartupProjects() in C:\d\lanes\4033\73f58d6d\source\xamarinvs\src\Core\VisualStudio\ProjectSystem\SolutionEvents.cs:line 309
   at Xamarin.VisualStudio.ProjectSystem.SolutionState.get_StartupProjects() in C:\d\lanes\4033\73f58d6d\source\xamarinvs\src\Core\VisualStudio\ProjectSystem\SolutionState.cs:line 53
   at Xamarin.VisualStudio.Android.CommandHandlers.DeployCommandHandler.MoreThanOneProjectHasSameDevice(ISolutionState solutionState, DeployCommand command) in C:\d\lanes\4033\73f58d6d\source\xamarinvs\src\Core\VisualStudio.Android\CommandHandlers\DeployCommandHandler.cs:line 86
   at Xamarin.VisualStudio.Android.CommandHandlers.DeployCommandHandler.CanExecute(DeployCommand command, IProgressReport progress) in C:\d\lanes\4033\73f58d6d\source\xamarinvs\src\Core\VisualStudio.Android\CommandHandlers\DeployCommandHandler.cs:line 63
   at Xamarin.VisualStudio.Commands.CommandHandlerBase`2.Execute(TCommand command, CancellationToken cancellationToken) in C:\d\lanes\4033\73f58d6d\source\xamarinvs\src\Core\VisualStudio\Commands\CommandHandlerBase.cs:line 132
Comment 1 xamarin-release-manager 2017-03-02 16:41:33 UTC
Fixed in version 99.1.0.780 (master)

Author: Daniel Cazzulino
Commit: bfa2d811021f36125ad024b45b11cf0e07bb3168 (xamarin/XamarinVS)
Comment 2 Jose Gallardo 2017-03-02 17:15:24 UTC
*** Bug 52752 has been marked as a duplicate of this bug. ***
Comment 3 Prasad Raghorte 2017-03-21 11:45:16 UTC
Hi Daniel,

Can you please provide detail steps and environment about this defect
Comment 4 Daniel Cazzulino 2017-03-21 13:01:44 UTC
Install Wix toolset foto VS and add a WiX project to the solution.
Comment 5 Swati Gangrade 2017-03-22 09:54:27 UTC
Created attachment 20581 [details]
Logs

Bug is retested and verified in below build configurations:

• Windows 10 Pro
• Microsoft  Visual  Studio Enterprise 2015 Version 14.0.25431.01 Update3
• Microsoft  .Net Framework Version 4.6.01586
• Xamarin 4.4.0.7 (ob7edd0)
• xamarin.android-7.2.0.6 (b8e3884)
• xamarin.ios-10.8.0.26 (0e9e791)
• Wix toolset Visual Studio 2015 Extension Version-0.9.10.21458


Actual Result- Android app is deployed successfully when a Wix project is added in the same solution. Please refer the attached logs.