Where does nuget log detailed error message - visual-studio-2012

I created package and pushed it to local repository. Now when I'm trying to install package using Package Manager Console, I'm getting following error message
Installing 'MyPackage 1.0.0'.
Successfully installed 'MyPackage 1.0.0'.
Adding 'MyPackage 1.0.0' to TestConsoleApp.
Uninstalling 'MyPackage 1.0.0'.
Successfully uninstalled 'MyPackage 1.0.0'.
Install failed. Rolling back...
Install-Package : Failed to add reference to 'MyDll'.
At line:1 char:16
+ Install-Package <<<< MyPackage
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I'm using Visual Studio 2012. I found this issue on nuget.org, but I don't see any error message in ActivityLog.xml. I tried to run Visual Studio with /log switch but still nothing is getting logged. The issue is only with this package, I can successfully install other packages I created.
So my question is if nuget is logging more detailed message anywhere and if so where I can find it?

Have a look at the $error object in the Package Manager Console. That usually has the exception and from that you can get the callstack.
From the console you may be able to get the full exception callstack the following:
$error[0].Exception.StackTrace
Otherwise take a look at the $error object and see what information it has that might be useful.

Related

Can't install umbraco using nuget "operation failed"

i'am new use umbraco cms after i try to install using nuget in visual studio 2012 i get this error
From nuget package
'Newtonsoft.Json' already has a dependency defined for 'Microsoft.CSharp'.
and this from nuget console
Install-Package : 'Newtonsoft.Json' already has a dependency defined for 'Microsoft.CSharp'.
At line:1 char:1
+ Install-Package UmbracoCms
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
how to solve this
I had this yesterday. You need to make sure your NuGet manager in Visual Studio is the latest version. On older versions, you'll get that error. Upgrading the NuGet manager fixed the error for me. See here for some more info: http://issues.umbraco.org/issue/U4-9848

Nuget update-package error with Microsoft.ApplicationInsights.JavaScript

Wether I start a new project and add Azure Application Insights or add Insights to an existing project, it seems to break my Nuget updates.
Attempting to resolve dependencies for multiple packages
update-package : Unable to find package 'Microsoft.ApplicationInsights.JavaScript'. Existing packages must be restored before
performing an install or update.
At line:1 char:1
+ update-package
+ ~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Update-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand
I can no longer just type 'update-package' to update all my packages.
Using VS2015
How do I fix this?
Do you have the "Include Prerelease" option checked in the NuGet package manager (or specify -IncludePrerelease in the Update-Package command in the Package Manager Console)?
I believe the JavaScript package is only pre-release at this moment.

Installing Caliburn.Micro NuGet Package always fails

I am attempting to compile the Caliburn.Micro projects from GitHub so I can generate the DLL's to use in my own project - a Caliburn.Micro Xamarin Native Android project.
I have loaded the Caliburn.Micro.sln (located in the src folder) into Visual Studio 2012 professional and attempted to build the Caliburn.Micro project. I get 40 errors relating to metadata. For example;
Error 5 Metadata file '_Tests\Caliburn.Micro-xamarin\Caliburn.Micro-xamarin\bin\net45\Debug\Caliburn.Micro.Platform.dll' could not be found _Tests\Caliburn.Micro-xamarin\Caliburn.Micro-xamarin\src\Caliburn.Micro.Tests.NET45\CSC Caliburn.Micro.Tests.NET45
So I have attempted to install the Caliburn.Micro NuGet package on this project and I get the following errors. I have also created my own new solution and attempted to install the Caliburn.Micro NuGet package and the same error occurs.
Any ideas what is going wrong?
PM> Install-Package Caliburn.Micro
Attempting to resolve dependency 'Caliburn.Micro.Core (= 2.0.2)'.
Installing 'Caliburn.Micro.Core 2.0.2'.
Successfully installed 'Caliburn.Micro.Core 2.0.2'.
Installing 'Caliburn.Micro 2.0.2'.
Successfully installed 'Caliburn.Micro 2.0.2'.
Adding 'Caliburn.Micro.Core 2.0.2' to Caliburn.Micro.
Uninstalling 'Caliburn.Micro.Core 2.0.2'.
Successfully uninstalled 'Caliburn.Micro.Core 2.0.2'.
Install failed. Rolling back...
Install-Package : Specified argument was out of the range of valid values.
Parameter name: supportedFrameworks
At line:1 char:1
+ Install-Package Caliburn.Micro
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], ArgumentOutOfRangeException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
The ArgumentOutOfRangeException with the argument name being supportedFrameworks usually means there is something wrong with one or more of your Portable Class Library (PCL) profiles.
NuGet looks at the .xml files in various PCL directories, for example:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile259\SupportedFrameworks
If for some reason NuGet does not find any non-Xamarin profile xml files in one of these directories it will throw an ArgumentOutOfRangeException. The SupportedFrameworks directory will either be empty or may just have Xamarin .xml files in there, both of these problems will cause the ArgumentOutOfRangeException.
To find which PCL profile has missing .xml files you can either look at every PCL profile directory or debug NuGet.
I usually use a console app that uses NuGet but you can easily debug, passing it the list command line argument which will trigger the same code path as NuGet version 2. If you then put a breakpoint on the line of code that throws the ArgumentOutOfRangeException you should be able to see which PCL profile is causing a problem.

Unable to find package 'WPtoolkit'

I want to install the Windows Phone Toolkit, following instructions from the Codeplex, but I keep getting the following error message in the Package Manager Console:
Install-Package : Unable to find package 'WPtoolkit'.
At line:1 char:1
+ Install-Package WPtoolkit
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I also tried to look in "Manage NuGet Packages" and I couldn't find the Toolkit in the online tab there either.
Context: I've tried in VS2012 and VS2013, tried building as a WP8 and WP8.1 app.
I need this Toolkit because of the view components in there like the ListPicker and LongListMultiSelector.
Thanks in advance.
See if you have any updates available for Nuget Package Manager in the Notifications in the Notifications panel. If so try updating the package manager and try to re install WPToolkit.
I somehow managed to download the WPToolkit. I don't know which step fixed it but this is what I did:
Opened VS2013. Before opening any project, went to Tools > Extensions and Updates.
Under "Installed" tab I found the NuGet Package Manager for Visual Studio 2013, and uninstalled it.
Went to "Online" tab and installed it again.
Opened up my project.
Went to Tools > NuGet Package Manager > Manage NuGet Packages for Solution.
Searched in "Online" tab for "WPtoolkit" and found it!
I don't know if this helps anyone else but it may have been a bug in VS.

Google.Apis.Authentication 1.5.0-beta runtime error

while trying to create a windows phone app.
i want to use google calendar, and i just cant find out the way to install the framework.
am following the google example right in this link:
https://developers.google.com/google-apps/calendar/setup
i used the package manager console with the follow command
PM> Install-Package Google.Apis.Calendar.v3 -Pre
and runs all fine.
when i use this:
using Google.Apis.Authentication;
using Google.Apis.Authentication.OAuth2;
using Google.Apis.Calendar.v3;
using Google.Apis.Calendar.v3.Data;
i get a runtime error. on 0Auth2 that sais that the name space doesnt exit.
i try to use again the package manager console with the follow code:
PM> Install-Package Google.Apis.Authentication -Pre
and i get this message:
Install failed. Rolling back...
Install-Package : Could not install package 'Google.Apis.Authentication 1.5.0-beta'. You are trying to install this package into a project that targets
'Silverlight,Version=v4.0,Profile=WindowsPhone71', but the package does not contain any assembly references or content files that are compatible with that
framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Google.Apis.Authentication -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

Resources