Can no longer load Xamarin Forms Solution in VS 2015

JulienRosenJulienRosen CAMember ✭✭✭✭
edited November 2015 in Visual Studio

I updated to latest XF on my Windows machine as well my Mac build host.

Now, when I open my XF solution in VS 2015, it just hangs. I have waited upwards of 10 minutes. The projects load but the solution is indefinitely "loading".

Other solutions load fine. I've restarted both machines.

Help!!

Edit: Solution loads fine in Xamarin Studio.

Best Answers

Answers

  • PaulDiPietroPaulDiPietro USXamarin Team Xamurai

    Hi @JulienRosen, do you happen to have any more information on this you can provide? When you mention "other solutions," have you attempted creating a new XF project and see if it does the same thing? Software/system information from the About Microsoft Visual Studio window could also be of help.

  • JulienRosenJulienRosen CAMember ✭✭✭✭
    edited November 2015

    I am able to create and load new XF solutions in VS2015.

    VS2013 behaves the same way as 2015 re: loading my existing solution.

    Microsoft Visual Studio Enterprise 2015
    Version 14.0.23107.0 D14REL
    Microsoft .NET Framework
    Version 4.6.00079

    Installed Version: Enterprise

    Architecture and Modeling Tools 00322-80000-00000-AA069
    Microsoft Architecture and Modeling Tools

    UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

    Visual Basic 2015 00322-80000-00000-AA069
    Microsoft Visual Basic 2015

    Visual C# 2015 00322-80000-00000-AA069
    Microsoft Visual C# 2015

    Visual C++ 2015 00322-80000-00000-AA069
    Microsoft Visual C++ 2015

    Application Insights Tools for Visual Studio Package 1.0
    Application Insights Tools for Visual Studio

    ASP.NET and Web Tools 2015 (Beta8) 14.0.61012.0
    ASP.NET and Web Tools 2015 (Beta8)

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

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

    GenerateUnitTest 1.0
    Generates unit test code for methods in classes under test.

    GitHub.VisualStudio 1.0
    A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

    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 © 2015 JetBrains, Inc.

    Microsoft Azure Mobile Services Tools 1.4
    Microsoft Azure Mobile Services Tools

    Microsoft Code Digger 0.9
    Microsoft Code Digger

    Microsoft.Pex.VisualStudio 1.0
    Pex

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

    SQL Server Data Tools 14.0.50616.0
    Microsoft SQL Server Data Tools

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

    Xamarin.Android 6.0.0.34 (3efa14c)
    Visual Studio plugin to enable development for Xamarin.Android.

    Xamarin.iOS 9.2.1.51 (3c0ec35)
    Visual Studio extension to enable development for Xamarin.iOS.

  • JulienRosenJulienRosen CAMember ✭✭✭✭

    Reinstalled all of Xamarin. No change. Completely unable to load my solution. This is really bad!!

  • KyleMastersKyleMasters USMember ✭✭

    +1 to this. Update to XF 2.0.0 stops the solution from loading. If it helps, the solution lists as Loading, the PCL, Droid, andIOS, projects load, but my Windowsprojects still have the (initializing).

  • KyleMastersKyleMasters USMember ✭✭
    edited November 2015

    @PaulDiPietro - To boot, the IDE log is full of exceptions. File Not Found. Carbase.ControlPanel.App is my overall solution name, and the name of my PCL.

    Xamarin.VisualStudio.UnhandledExceptionsManager Error: 0 : [2015-11-17 14:01:43.9885] Unhandled exception.
    System.IO.FileNotFoundException: Could not load assembly 'Carbase.ControlPanel.App, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
    File name: 'Carbase.ControlPanel.App.dll'
    at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
    at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(String fullName, ReaderParameters parameters)
    at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(String fullName)
    at Xamarin.Android.Tuner.DirectoryAssemblyResolver.GetAssembly(String fileName)
    at Xamarin.Android.Tasks.GetAdditionalResourcesFromAssemblies.c__AnonStorey2.<>m__0()
    at System.Threading.Tasks.Task.InnerInvoke()
    at System.Threading.Tasks.Task.Execute()

    -- Versioning --

    Microsoft Visual Studio Enterprise 2015
    Version 14.0.23107.0 D14REL
    Microsoft .NET Framework
    Version 4.6.00079

    Installed Version: Enterprise

    Architecture and Modeling Tools 00322-80000-00000-AA357
    Microsoft Architecture and Modeling Tools

    UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

    LightSwitch for Visual Studio 2015 00322-80000-00000-AA357
    Microsoft LightSwitch for Visual Studio 2015

    Visual Basic 2015 00322-80000-00000-AA357
    Microsoft Visual Basic 2015

    Visual C# 2015 00322-80000-00000-AA357
    Microsoft Visual C# 2015

    Visual C++ 2015 00322-80000-00000-AA357
    Microsoft Visual C++ 2015

    Windows Phone SDK 8.0 - ENU 00322-80000-00000-AA357
    Windows Phone SDK 8.0 - ENU

    Application Insights Tools for Visual Studio Package 1.0
    Application Insights Tools for Visual Studio

    ASP.NET and Web Tools 14.0.20626.0
    ASP.NET and Web Tools

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

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

    GenerateUnitTest 1.0
    Generates unit test code for methods in classes under test.

    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 © 2015 JetBrains, Inc.

    Microsoft Azure Mobile Services Tools 1.4
    Microsoft Azure Mobile Services Tools

    Microsoft Code Digger 0.9
    Microsoft Code Digger

    Microsoft.Pex.VisualStudio 1.0
    Pex

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

    Office Developer Tools for Visual Studio 2015 ENU 14.0.23025
    Microsoft Office Developer Tools for Visual Studio 2015 ENU

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

    SQL Server Data Tools 14.0.50616.0
    Microsoft SQL Server Data Tools

    Visual Studio Tools for Universal Windows Apps 14.0.23309.00 d14oob
    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 Essentials 2015 0.5.197
    Adds many useful features to Visual Studio for web developers.

    Workflow Manager Tools 1.0 1.0
    This package contains the necessary Visual Studio integration components for Workflow Manager.

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

    Xamarin.Android 6.0.0.34 (3efa14c)
    Visual Studio plugin to enable development for Xamarin.Android.

    Xamarin.iOS 9.2.1.51 (3c0ec35)
    Visual Studio extension to enable development for Xamarin.iOS.

  • JulienRosenJulienRosen CAMember ✭✭✭✭

    Update: Removing the Droid project from the solution by manually editing the .sln file allows the solution to load. Clearly not an acceptable workaround but narrows it down some.

  • KyleMastersKyleMasters USMember ✭✭
    edited November 2015

    @JulienRosen @PaulDiPietro Ties into the above exception I found in the Xamarin logs about the project not being included in Mono for Android. And removing the Android project allows me to load the solution, as well. That ain't going to fly with my management, since Android is the primary target...lol

    EDIT: Note that the solution loads fine in the Xamarin Studio.

    EDIT 2: Since there hasn't been a reply in an hour, it's now at https://bugzilla.xamarin.com/show_bug.cgi?id=35952

  • KyleMastersKyleMasters USMember ✭✭
    edited November 2015

    So. After manually removing the Android project, I was able to get it back in by doing an Add -> Existing Project. That at least allowed me to open it up in order to downgrade XF back to 1.5.1.

    I can close and re-open the project after doing the above, but it doesn't compile with 2.0 (it locks the Xamarin.Forms.*.dll files so they can't be replaced on build/rebuild), so I think I'm going to hold off on the upgrade to XF 2.0 for a while. :disappointed:

  • valdeterovaldetero USInsider, University ✭✭

    @KyleMasters you have to restart VS after up/downgrading xamarin.forms because of the file locking. Once I did that, then I no longer received the file lock build errors.

  • KyleMastersKyleMasters USMember ✭✭

    I was still receiving the errors after restart, and the process explorer wouldn't reveal what was locking it. Even tried rebooting the PC.

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai
    edited November 2015

    Have you attempt to delete the hidden .vs folder that VS 2015 generates? It might be doing some crazy file locking.

  • KyleMastersKyleMasters USMember ✭✭

    Should be noted that now, every time I close/reopen Visual Studio, I have to manually delete the .vs folder.

  • AlexvanMeertenAlexvanMeerten NLMember ✭✭

    Ik have the same problem with Xamarin.Forms.1.5.1.6468. I did not upgrade to version 2 yet. Did install new Xamarin and iOS stuff.

  • JulienRosenJulienRosen CAMember ✭✭✭✭

    This is an ongoing issue, i'm having to constantly manually edit my .sln file, remove droid project, load solution, then re-add droid project.

  • TheRealJasonSmithTheRealJasonSmith USXamarin Team Xamurai

    Hi guys, we are seeing this in the forms team too, I will make sure that this gets escalated properly. Further I am going to move this thread to the correct forum.

This discussion has been closed.