Bug 61251 - After Archiving solution, Distribute button does not work
Summary: After Archiving solution, Distribute button does not work
Status: RESOLVED ANSWERED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 4.9.0 (15.6)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2018-03-06 18:07 UTC by michael.c.gabay
Modified: 2018-03-07 18:58 UTC (History)
4 users (show)

Tags: Xamarin Xamarin.Android
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 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 ANSWERED

Description michael.c.gabay 2018-03-06 18:07:28 UTC
After archiving an Android Solution and pressing Distribute nothing happens.
The IDE should present the Distribution Channel for selecting the Ad Hoc or Google Play distribution methods.

The IDE log shows:
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|App archive 'TransportACE.Droid' completed successfully.
Xamarin.VisualStudio.UnhandledExceptionsManager|Error|0|An unhandled error occurred. Details: Sequence contains no matching element

System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source, Func`2 predicate)
   at Xamarin.VisualStudio.Publishing.Presentation.ViewModels.AndroidDistributeViewModel..ctor(BuildViewModel buildViewModel, IDistributionManager distributionManager, IProgressReportService progressReportService, IAsyncManager asyncManager) in E:\A\_work\61\s\src\Core\VisualStudio.Publishing\Presentation\ViewModels\AndroidDistributeViewModel.cs:line 234
   at Xamarin.VisualStudio.Publishing.Presentation.ViewModels.ArchiveListViewModel.<ShowAndroidDistributeDialog>d__55.MoveNext() in E:\A\_work\61\s\src\Core\VisualStudio.Publishing\Presentation\ViewModels\ArchiveListViewModel.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)


Version info:
Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.7.02556

Installed Version: Professional

Visual Basic 2015   00322-40000-00000-AA121
Microsoft Visual Basic 2015

Visual C# 2015   00322-40000-00000-AA121
Microsoft Visual C# 2015

Visual C++ 2015   00322-40000-00000-AA121
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-40000-00000-AA121
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   7.0.20622.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Clang with Microsoft CodeGen   14.0.25516
Clang with Microsoft CodeGen

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Mono Debugging for Visual Studio   4.9.11-pre (71eb098)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   3.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Python Tools for Visual Studio   2.2.50113.00
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.

Python Tools for Visual Studio - Django Integration   2.2.50113.00
Provides templates and integration for the Django web framework.

Python Tools for Visual Studio - Profiling Support   2.2.50113.00
Profiling support for Python projects.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

TypeScript   1.8.36.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Cross Platform Mobile Development (iOS)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (iOS)

Visual Studio Tools for Apache Cordova   Update 10
Visual Studio Tools for Apache Cordova

Visual Studio Tools for Universal Windows Apps   14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

Xamarin   4.9.0.749 (9b0fce36d)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   4.10.58 (cee1369d0)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin.Android SDK   8.2.0.15 (HEAD/22d97e153)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS   11.8.0.20 (1c6f300)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS and Xamarin.Mac SDK   11.8.0.20 (1c6f300)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2018-03-06 22:41:37 UTC
## Cross-referencing note to the Xamarin team

Also reported by the user from Comment 0 in GitHub:
https://github.com/xamarin/xamarin-android/issues/1372

(Based on an initial glance at the stack trace, it looks like the issue might not involve the Xamarin.Android repository, so the Visual Studio Tools for Xamarin team might end up tracking this issue here in Bugzilla.)
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2018-03-07 18:58:33 UTC
Now that I've checked-in with the team, I will close this bug to direct the discussion to the GitHub issue (https://github.com/xamarin/xamarin-android/issues/1372) as the primary location to track this issue.  As part of the general transition of the Xamarin team onto Developer Community and GitHub Issues, the Visual Studio Tools for Xamarin team is moving away from tracking issue in Bugzilla.


Partly as additional notes to myself, here are some updated details about bug filing related to the Visual Studio Tools for Xamarin:

- Issues that are reproducible in Visual Studio 2017 Tools for Xamarin should all be submitted to Developer Community via "Help > Submit Feedback > Report a Problem".  (Ideally, this also includes any issues that affect both Visual Studio 2017 and Visual Studio 2017.)

- Issues that only affect Visual Studio 2015 Tools for Xamarin (and not Visual Studio 2017) are ramping down for investigation as the team moves into the Visual Studio 2017 version 15.7 Preview release.  That next 15.7 version will not include a corresponding installer for the Visual Studio 2015 Tools for Xamarin, so the backport approach for Visual Studio 2015 will be shifting to a different maintenance mode.

- For now, the best place for issues that only affect Visual Studio 2015 Tools for Xamarin is on GitHub Issues under the Xamarin.iOS & Xamarin.Mac repository [1] or the Xamarin.Android repository [2], depending on which project type is affected in the IDE.

[1] https://github.com/xamarin/xamarin-macios/issues
[2] https://github.com/xamarin/xamarin-android/issues


I will also plan to follow-up with the engineering teams to discuss some possible renaming and wording changes for the Bugzilla categories to help make this more clear.