Bug 53125 - Package Installation Error - Could not add all required packages to the project.
Summary: Package Installation Error - Could not add all required packages to the project.
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Templates ()
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: 15.1
Assignee: Pierce Boggan [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-03-07 18:41 UTC by Pierce Boggan [MSFT]
Modified: 2017-03-27 17:10 UTC (History)
10 users (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 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 Pierce Boggan [MSFT] 2017-03-07 18:41:13 UTC
# Steps to reproduce
1. Install RTW build of Visual Studio 2017 (v15.0.0-RTW+26228.4). 
2. Ensure you have the Xamarin and Azure workloads installed.
3. File -> New -> Project -> Visual C# -> Cross-Platform -> Cross-Platform App.
4. Try one of the following configurations (all of which can be used reproduce this bug):
-Master Detail -> Xamarin.Forms -> Shared Project -> Host in the cloud
-Master Detail -> Xamarin.Forms -> Portable Class Library (PCL) -> Host in the cloud
-Master Detail -> Native -> Shared Project -> Host in the cloud.
5. Click "OK". The templates will begin to unfold.

# Expected behavior
Templates unfold without issue.

# Actual behavior
Templates hit the following issue when unfolding the UWP project:
https://www.dropbox.com/s/lq5onae352ig6ho/Pasted%20image%20at%202017_03_07%2012_27%20PM.png?dl=0

# Supplemental info (logs, images, videos)
It's worth noting this issue does _not_ appear when using the Master Detail -> Native -> Portable Class Library (PCL) -> Host in the cloud option. Might be useful to diff those vstemplate files to see what exactly is differing.

# Test environment (full version information)
Microsoft Visual Studio Enterprise 2017
Version 15.0.26228.4 D15RTWSVC
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Architecture Diagrams and Analysis Tools   00369-60000-00001-AA833
Microsoft Architecture Diagrams and Analysis Tools

Visual Basic 2017   00369-60000-00001-AA833
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA833
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA833
Microsoft Visual C++ 2017

Visual F# 4.1   00369-60000-00001-AA833
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.6.00209.10
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30223.0
ASP.NET and Web Tools 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50127.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30209.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.2.5000.0
Microsoft Azure Data Lake Tools for Visual Studio

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

Fabric.ApplicationInsights   1.0
Allows user to instrument their Service Fabric projects for Application Insights.

Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.13-alpha (2f64b6d)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure Hive Query Language Service   2.2.5000.0
Language service for Hive query

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1

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

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

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

SQL Server Data Tools   15.1.61702.140
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript   2.1.5.0
TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps   15.0.26228.00
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.

Xamarin   4.3.0.784 (73f58d6)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.1.0.41 (9578cdc)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.4.0.123 (35d1ccd)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 2 Cody Beyer (MSFT) 2017-03-08 16:36:37 UTC
Here is the dialog text:

>---------------------------
>Microsoft Visual Studio
>---------------------------
>Package Installation Error

>Could not add all required packages to the project. The following packages failed to install >from 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL >STUDIO\2017\ENTERPRISE\COMMON7\IDE\EXTENSIONS\GDLPUXOH.DQ2\Packages':


>Microsoft.Azure.Mobile.Client.3.0.3 : Package restore failed. Rolling back package changes >for 'App2.UWP'.

>Newtonsoft.Json.9.0.1 : Package restore failed. Rolling back package changes for 'App2.UWP'.

>Xam.Plugin.Connectivity.2.3.0 : Package restore failed. Rolling back package changes for >'App2.UWP'.

>Xam.Plugins.Settings.2.5.1 : Package restore failed. Rolling back package changes for 'App2.UWP'.

>Xamarin.Forms.2.3.3.193 : Package restore failed. Rolling back package changes for 'App2.UWP'.
>---------------------------
>OK   
>---------------------------
Comment 3 Joaquin Jares 2017-03-08 17:50:24 UTC
I'll look into this.
Comment 5 Luis Aguilera 2017-03-27 14:48:59 UTC
this should be fixed for d15-1
Comment 6 Ben Beckley 2017-03-27 17:10:47 UTC
No longer getting this behavior when using the following:
VS2017 26323.0 d15rel
Xamarin.Forms Templates 0.5.285
XVS 4.4.0.18 (f204cf0)

Tried the following templates and did not receive the error dialog:
>Master Detail -> Xamarin.Forms -> Shared Project -> Host in the cloud
>Master Detail -> Xamarin.Forms -> Portable Class Library (PCL) -> Host in the cloud
>Master Detail -> Native -> Shared Project -> Host in the cloud.
>Master Detail -> Native -> Portable Class Library (PCL) -> Host in the cloud

env info: https://gist.github.com/BenBeckley/a37c3759a6022705ccd31aa10a7caf28