Hi All,
I am trying to install Xamarin.Forms after creating a new Xamarin.Forms Portable app in Visual Studio.
Package Manager fails w/ NullReferenceException.
Please see below. Any help would be much appreciated!
Thanks!
PMC Output
PM> Install-Package Xamarin.Forms -Version 2.0.0.6490
Attempting to resolve dependency 'Xamarin.Android.Support.v4 (= 23.0.1.3)'.
Attempting to resolve dependency 'Xamarin.Android.Support.Design (= 23.0.1.3)'.
Attempting to resolve dependency 'Xamarin.Android.Support.v7.AppCompat (≥ 23.0.1.3)'.
Attempting to resolve dependency 'Xamarin.Android.Support.v7.CardView (= 23.0.1.3)'.
Attempting to resolve dependency 'Xamarin.Android.Support.v7.MediaRouter (= 23.0.1.3)'.
Installing 'Xamarin.Android.Support.v4 23.0.1.3'.
Successfully installed 'Xamarin.Android.Support.v4 23.0.1.3'.
Installing 'Xamarin.Android.Support.v7.AppCompat 23.0.1.3'.
Successfully installed 'Xamarin.Android.Support.v7.AppCompat 23.0.1.3'.
Installing 'Xamarin.Android.Support.Design 23.0.1.3'.
Successfully installed 'Xamarin.Android.Support.Design 23.0.1.3'.
Installing 'Xamarin.Android.Support.v7.CardView 23.0.1.3'.
Successfully installed 'Xamarin.Android.Support.v7.CardView 23.0.1.3'.
Installing 'Xamarin.Android.Support.v7.MediaRouter 23.0.1.3'.
Successfully installed 'Xamarin.Android.Support.v7.MediaRouter 23.0.1.3'.
Installing 'Xamarin.Forms 2.0.0.6490'.
Successfully installed 'Xamarin.Forms 2.0.0.6490'.
Adding 'Xamarin.Android.Support.v4 23.0.1.3' to BlankAppPortable.Droid.
Successfully added 'Xamarin.Android.Support.v4 23.0.1.3' to BlankAppPortable.Droid.
Adding 'Xamarin.Android.Support.v7.AppCompat 23.0.1.3' to BlankAppPortable.Droid.
Successfully added 'Xamarin.Android.Support.v7.AppCompat 23.0.1.3' to BlankAppPortable.Droid.
Adding 'Xamarin.Android.Support.Design 23.0.1.3' to BlankAppPortable.Droid.
Successfully added 'Xamarin.Android.Support.Design 23.0.1.3' to BlankAppPortable.Droid.
Adding 'Xamarin.Android.Support.v7.CardView 23.0.1.3' to BlankAppPortable.Droid.
Successfully added 'Xamarin.Android.Support.v7.CardView 23.0.1.3' to BlankAppPortable.Droid.
Adding 'Xamarin.Android.Support.v7.MediaRouter 23.0.1.3' to BlankAppPortable.Droid.
Successfully added 'Xamarin.Android.Support.v7.MediaRouter 23.0.1.3' to BlankAppPortable.Droid.
Adding 'Xamarin.Forms 2.0.0.6490' to BlankAppPortable.Droid.
Uninstalling 'Xamarin.Forms 2.0.0.6490'.
Successfully uninstalled 'Xamarin.Forms 2.0.0.6490'.
Uninstalling 'Xamarin.Android.Support.v7.MediaRouter 23.0.1.3'.
Successfully uninstalled 'Xamarin.Android.Support.v7.MediaRouter 23.0.1.3'.
Uninstalling 'Xamarin.Android.Support.v7.CardView 23.0.1.3'.
Successfully uninstalled 'Xamarin.Android.Support.v7.CardView 23.0.1.3'.
Uninstalling 'Xamarin.Android.Support.Design 23.0.1.3'.
Successfully uninstalled 'Xamarin.Android.Support.Design 23.0.1.3'.
Uninstalling 'Xamarin.Android.Support.v7.AppCompat 23.0.1.3'.
Successfully uninstalled 'Xamarin.Android.Support.v7.AppCompat 23.0.1.3'.
Uninstalling 'Xamarin.Android.Support.v4 23.0.1.3'.
Successfully uninstalled 'Xamarin.Android.Support.v4 23.0.1.3'.
Install failed. Rolling back...
Install-Package : Object reference not set to an instance of an object.
At line:1 char:1
+ Install-Package Xamarin.Forms -Version 2.0.0.6490
+ ~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], NullReferenceException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
PM> $error[0].Exception.StackTrace
at NuGet.NetPortableProfileTable.GetProfile(String profileName)
at NuGet.NetPortableProfile.Parse(String profileValue, Boolean treatOptionalFrameworksAsSupportedFrameworks)
at NuGet.VersionUtility.IsPortableLibraryCompatible(FrameworkName projectFrameworkName, FrameworkName packageTargetFrameworkName)
at NuGet.VersionUtility.IsCompatible(FrameworkName projectFrameworkName, FrameworkName packageTargetFrameworkName)
at NuGet.VersionUtility.<>c__DisplayClass191.<TryGetCompatibleItems>b__13(IGrouping
2 g)
at System.Linq.Enumerable.WhereListIterator
1.MoveNext()
at System.Linq.Buffer
1..ctor(IEnumerable1 source)
at System.Linq.OrderedEnumerable
1.d__1.MoveNext()at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source)
at NuGet.VersionUtility.TryGetCompatibleItems[T](FrameworkName projectFramework, IEnumerable
1 items, IEnumerable1& compatibleItems)
at NuGet.ProjectSystemExtensions.GetCompatibleItemsCore[T](IProjectSystem projectSystem, IEnumerable
1 items)at NuGet.ProjectManager.ExtractPackageFilesToProject(IPackage package)
at NuGet.ProjectManager.AddPackageReferenceToProject(IPackage package)
at NuGet.ProjectManager.Execute(PackageOperation operation)
at NuGet.ProjectManager.Execute(IPackage package, IPackageOperationResolver resolver)
at NuGet.ProjectManager.AddPackageReference(IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
at NuGet.VisualStudio.VsPackageManager.<>c__DisplayClass60.b__5f()
at NuGet.VisualStudio.VsPackageManager.RunProjectAction(IProjectManager projectManager, Action action)
at NuGet.VisualStudio.VsPackageManager.AddPackageReference(IProjectManager projectManager, IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
at NuGet.VisualStudio.VsPackageManager.<>c__DisplayClass8.b__4()
at NuGet.VisualStudio.VsPackageManager.RunSolutionAction(Action action)
at NuGet.VisualStudio.VsPackageManager.InstallPackage(IProjectManager projectManager, String packageId, SemanticVersion version, Boolean ignoreDependencies, Boolean allowPrereleaseVersions, Boolean skipAssemblyReferences, ILogger logger)
at NuGet.VisualStudio.VsPackageManager.InstallPackage(IProjectManager projectManager, String packageId, SemanticVersion version, Boolean ignoreDependencies, Boolean allowPrereleaseVersions, ILogger logger)
at NuGet.PowerShell.Commands.InstallPackageCommand.InstallPackage(IVsPackageManager packageManager)
at NuGet.PowerShell.Commands.InstallPackageCommand.ProcessRecordCore()
at NuGet.PowerShell.Commands.NuGetBaseCommand.ProcessRecord()
Visual Studio Info
Microsoft Visual Studio Community 2013
Version 12.0.40629.00 Update 5
Microsoft .NET Framework
Version 4.6.01038
Installed Version: Professional
Team Explorer for Visual Studio 2013 06177-004-0444002-02422
Microsoft Team Explorer for Visual Studio 2013
Visual Basic 2013 06177-004-0444002-02422
Microsoft Visual Basic 2013
Visual C# 2013 06177-004-0444002-02422
Microsoft Visual C# 2013
Visual C++ 2013 06177-004-0444002-02422
Microsoft Visual C++ 2013
Visual F# 2013 06177-004-0444002-02422
Microsoft Visual F# 2013
Visual Studio 2013 Code Analysis Spell Checker 06177-004-0444002-02422
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker
Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
Windows Phone SDK 8.0 - ENU 06177-004-0444002-02422
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 2013 12.5.61123.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Web Apps
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure
ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.30612.0
For additional information, visit http://www.asp.net/
Azure App Service Tools v2.8.1 12.5.61123.0
Azure App Service Tools v2.8.1
Common Azure Tools 1.7
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
DataFactoryProject 1.0
Microsoft Data Factory Package
Microsoft Azure Data Factory Node Node 1.0
Azure Data Factory extension for Visual Studio Server Explorer.
Microsoft Azure HDInsight HQL Service 2.0.2900.0
Language service for Hive query
Microsoft Azure HDInsight Tools for Visual Studio 2.0.2900.0
An integrated development environment for HDInsight application development.
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
Microsoft Azure Tools 2.7
Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.7.30818.1601
Microsoft Azure Tools 2.4
Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.4.20730.1601
Microsoft Azure Tools 2.8
Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.8.31121.1
NuGet Package Manager 2.8.60723.765
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 12.0.50730.0
Microsoft SQL Server Data Tools
Windows Phone 8.1 SDK Integration 1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.
Xamarin 4.0.0.1717 (1390b70)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android 6.0.0.35 (d300845)
Visual Studio plugin to enable development for Xamarin.Android.
Xamarin.Forms Intellisense 1.0
Provides intellisense for Xamarin.Forms in the XML editor.
Xamarin.iOS 9.3.99.33 (ea30b32)