Bug 43703 - UWP projects cannot build unless you are on Beta branch now
Summary: UWP projects cannot build unless you are on Beta branch now
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: unspecified
Hardware: PC Windows
: --- critical
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-08-24 14:24 UTC by Dave Voyles
Modified: 2017-02-21 21:36 UTC (History)
6 users (show)

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:

Description Dave Voyles 2016-08-24 14:24:25 UTC
# Steps to reproduce
Take any project (new or existing) and try to build UWP.

# Expected behavior
Project deploys correctly.

# Actual behavior
Error in console: "Cannot locate Packages.Config"

# Supplemental info (logs, images, videos)
User must update to beta branch of Xamarin within VS to force Xamarin to stop looking for packages.config.

# Test environment (full version information)
			Microsoft Visual Studio Community 2015
Version 14.0.25425.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Community

Microsoft Visual Studio Tools for Applications 2015   00322-20000-00000-AA006
Microsoft Visual Studio Tools for Applications 2015

Visual Basic 2015   00322-20000-00000-AA006
Microsoft Visual Basic 2015

Visual C# 2015   00322-20000-00000-AA006
Microsoft Visual C# 2015

Visual C++ 2015   00322-20000-00000-AA006
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-20000-00000-AA006
Windows Phone SDK 8.0 - ENU

Add New File   3.5
The fastest and easiest way to add new files to any project - including files that start with a dot

ASP.NET and Web Tools 2015.1   14.1.20624.0
ASP.NET and Web Tools 2015.1

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/

Azure App Service Tools v2.9   14.0.20316.0
Azure App Service Tools v2.9

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.0.6000.0
Microsoft Azure Data Lake Tools for Visual Studio

Bundler & Minifier   2.1.279
Adds support for bundling and minifying JavaScript, CSS and HTML files in any project.

Code alignment   12.1
Code alignment helps you present your code beautifully, enhancing clarity and readability.

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

File Nesting   2.5.62
Automatically nest files based on file name and enables developers to nest and unnest any file manually

Image Optimizer   3.6.93
Uses industry standard tools to optimize any JPEG, PNG and Gifs - including animated Gifs. Can do both lossy and lossless optimization.

Image Sprites   1.3.38
Boost your website's performance by creating image sprites to reduce the amount of HTTP requests needed.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JetBrains ReSharper Ultimate 2015.2   Build 103.0.20150818.200216
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2016 JetBrains, Inc.

Markdown Editor   1.7.148
A full featured Markdown editor with live preview and syntax highligting. Supports GitHub flavored Markdown.

Microsoft .NET Core Tools (Preview 2)   14.1.20624.0
Microsoft .NET Core Tools (Preview 2)

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.9.40323.3

Node.js Tools   1.1.40329.04
Adds support for developing and debugging Node.js apps in Visual Studio

Node.js Tools - Profiling   1.1.40329.04
Profiling support for Node.js projects.

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

Open Command Line   2.1.175
Opens a command line at the root of the project. Support for all consoles such as CMD, PowerShell, Bash etc. Provides syntax highlighting, Intellisense and execution of .cmd and .bat files.

Package Installer   1.8.85
Makes it easier, faster and more convenient than ever to install Bower, npm, JSPM, TSD, Typings and NuGet packages to any project

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.40621.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.40621.00
Provides templates and integration for the Django web framework.

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

SQL Server Analysis Services   13.0.1601.5
Microsoft SQL Server Analysis Services Designer 
Version 13.0.1601.5

SQL Server Data Tools   14.0.60629.0
Microsoft SQL Server Data Tools

SQL Server Integration Services   
Microsoft SQL Server Integration Services Designer
Version 13.0.1601.5

SQL Server Reporting Services   13.0.1601.5
Microsoft SQL Server Reporting Services Designers 
Version 13.0.1601.5

Suggested Extensions   1.1.74
Get suggestions on what extensions you need to handle various file types and projects when you need them.

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript tools for Visual Studio

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

Visual Studio Tools for Unity
Visual Studio Tools for Unity

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.

Web Analyzer   1.7.77
Provides static analysis directly in Visual Studio for JavaScript, TypeScript, JSX, CSS and more

Web Compiler   1.11.319
Compiler for LESS, Sass and CoffeeScript files

Web Essentials 2015.3   3.0.235
Adds many useful features to Visual Studio for web developers. Requires Visual Studio 2015

Xamarin (b9b610a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Inspector Support (4d868da)
Adds support for inspecting Xamarin and WPF apps.

Xamarin.Android (f742154)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS (9eca876)
Visual Studio extension to enable development for Xamarin.iOS.

XamlStylerVSPackage   1.0
Xaml Styler.
Comment 1 Jose Gallardo 2016-08-24 15:36:30 UTC
Hi Dave,

Can you please clarify the scenario?
Is this issue present building UWP projects caused by having Xamarin current stable installed on the same environment? or are you reporting an issue on Xamarin.Forms UWP support?

As per description, it seems like the bug is already fixed with `cycle8` builds. Please confirm.

Comment 2 Dave Voyles 2016-08-24 18:36:27 UTC
I thought the bug was fixed (it managed to fix it on my Surface Book), but did not fix the issue on my desktop.

On my desktop, I just switched back to the latest stable build,, and still receive this error.

Scenario 1 :
Open an existing Xamarin.Forms shared project.
Select UWP as the startup project
Select x86
Deploy to local device

Could not locate C:\Users\Desktop\Desktop\8.24.16\Hendrick%20Mobile\ShopInsightsMobile\ShopInsightsMobile.UWP\packages.config.  Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file.	ShopInsightsMobile.UWP
Comment 3 Jose Gallardo 2016-08-29 13:41:55 UTC
Moving the report to Product Forms, for visibility from the Xamarin.Forms team, as this looks like an issue with Xamarin.Forms UWP support.

Comment 4 Dave Voyles 2016-08-29 14:13:16 UTC

Oddly enough, the Stable branch works fine on my Surface Book, but not on my desktop.

I compared my Desktop w/ my Visual Studio diagnostics (versions of VS, Xamarin, etc) with a co-worker, and they are identical, but he does not have that problem.

On the Surface Book, it will still throw an error about packages.config, but it still builds the project. Not sure.
Comment 5 Paul DiPietro [MSFT] 2016-08-30 16:42:09 UTC
What version of Forms are you trying to use? I'm able to build and run a UWP project on the latest prerelease, and have the stable branch installed on VS.
Comment 6 Dave Voyles 2016-08-31 11:37:49 UTC
I am in Seattle for the rest of the week, and this work was done on my desktop, in Philadelphia.

When I return on Monday I'll follow up in this thread with the version information and my DXdiag.
Comment 7 Samantha Houts [MSFT] 2016-09-23 17:36:47 UTC
@Dave Voyles,

Were you able to resolve this issue on your Surface Book? 

Warm regards,
Xamarin Forms Team
Comment 8 Dave Voyles 2016-09-23 18:01:33 UTC

I just tried building a new project on my desktop. It works fine.

Tried the same steps on my Surface Book, and ran into these errors:


Figured I had to restart VS, so I did, and it only came back with:

Error	CS0103	The name 'InitializeComponent' does not exist in the current context	XamTest.UWP
Comment 9 Paul DiPietro [MSFT] 2017-02-21 17:28:04 UTC
Are you still experiencing issues with this using the latest stable versions of everything?
Comment 10 Dave Voyles 2017-02-21 21:25:07 UTC
It seems to work again!
Comment 11 Paul DiPietro [MSFT] 2017-02-21 21:36:18 UTC
Glad to hear it. Going to set this to resolved, then.