Bug 54999 - VS 2017 hangs in project loading loop when we open an XA project
Summary: VS 2017 hangs in project loading loop when we open an XA project
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 4.4.0 (15.1)
Hardware: PC Windows
: Normal major
Target Milestone: 15.4
Assignee: Juan Marcelo Tondato
URL:
Depends on:
Blocks:
 
Reported: 2017-04-11 07:32 UTC by Prashant [MSFT]
Modified: 2017-09-27 09:49 UTC (History)
12 users (show)

Tags: 15.1R, NotFixedIn15.4
Is this bug a regression?: ---
Last known good build:


Attachments
Test case (60.69 KB, application/x-rar)
2017-04-11 07:33 UTC, Prashant [MSFT]
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 Prashant [MSFT] 2017-04-11 07:32:39 UTC
VS 2017 hangs in project loading a Xamarin.Android project with no AndroidManifest.xml file reference

# Steps to reproduce
1. Create a new Xamarin.Android project, and close Visual Studio
2. Remove the `<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>` line from `PropertyGroup` in the csproj file
3. Open the Solution in VS 2017

# Expected behavior
The solution should load in the VS 2017 without hanging

# Actual behavior
VS 2017 hangs trying to load the solution. This worked in the Cycle 9 release

# Supplemental info (logs, images, videos)
Forum post about the issue https://forums.xamarin.com/discussion/92844

# Test environment (full version information)

Microsoft Visual Studio Enterprise 2017 
Version 15.1 (26403.0) Release
VisualStudio.15.Release/15.1.0+26403.0
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Enterprise

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

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

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

Visual F# 4.1   00369-60000-00001-AA051
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.30320.0
ASP.NET and Web Tools 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50303.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.

JavaScript Language Service   2.0
JavaScript Language Service

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 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

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

NuGet Package Manager   4.1.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

Xamarin   4.4.0.34 (3f99c5a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.2.0.7 (b16fb82)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.8.0.174 (7656cc6)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 1 Prashant [MSFT] 2017-04-11 07:33:11 UTC
Created attachment 21414 [details]
Test case
Comment 2 Prashant [MSFT] 2017-04-11 10:43:37 UTC
Updated to steps to reproduce:

1. Create a new Xamarin.Android project, and close Visual Studio
2. move the AndroidManifest element from global PropertyGroup element to current Build Configuration Condition PropertyGroup element.
3. Open the Solution in VS 2017

https://forums.xamarin.com/discussion/comment/265602/#Comment_265602
Comment 4 John Miller [MSFT] 2017-05-01 20:18:53 UTC
## Bookkeeping note

I will prepare a non-engineering team preliminary quick review for this report. I was able to reproduce with the given steps. 



## Suspected to be a regression or a problem with a new feature?
Unclear. It would be good to test a previous build. 



## Already took up time for many users? 
Unclear. The OP links to the forum posts for the user reporting this. 



## Makes development (a) difficult, impossible, or potentially hazardous, (b) moderately inconvenient, or (c) mildly inconvenient for users?
(b) This seems to be related to a customization for controlling manifests per build configuration and is not the default setup for the .csproj
Comment 5 xamarin-release-manager 2017-08-04 19:48:51 UTC
Fixed in version 4.8.0.116 (master)

Pull Request #7917 merged by: Jose Gallardo
Author: tondat
Commit: ff4d78463f2454cbaa5b69f590e16e6c395ed1b9 (xamarin/XamarinVS)
Comment 8 xamarin-release-manager 2017-08-24 20:01:11 UTC
Fixed in version 4.8.0.247 (master)

Author: Juan Marcelo Tondato
Commit: 3bd3015c7ba253b1b35cb049d3ec03ee4ff12d4a (xamarin/XamarinVS)
Comment 9 Mohak Barokar 2017-09-27 09:49:12 UTC
Have Tested this bug on following build config:

 -Microsoft Visual Studio Enterprise 2017 Preview Version 15.4.0 Preview 3.0 [26923.0.d15rel]
 -Xamarin   4.7.10.18 (6bf00ad67)
 -Xamarin.Android SDK   8.0.0.29 (HEAD/872694031)
 -Xamarin.iOS and Xamarin.Mac SDK   11.2.0.8 (9a9f054)

Build Gist : https://gist.github.com/mohakbarokar/bac91bbda1f804d9807622149e640e8c

Screencast Link: https://www.screencast.com/t/UVG5bzv1m

The bug is found t be fixed. Marking this bug as Verified Fixed.