When trying to install the Windows Phone toolkit via NuGet Manager in Microsoft Visual Studio 2012, you might receive the following error.
“Install-Package : Could not install package ‘WPtoolkit 4.2013.08.16’. You are trying to install this package into a project that targets
‘WindowsPhone,Version=v8.0’, but the package does not contain any assembly references that are compatible with that framework. For more information,
contact the package author.
At line:1 char:1
+ Install-Package WPtoolkit
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand”
The reason for this error is that you might be having an older version of NuGet installed. Just download the latest version of NuGet Package Manager from Visual Studio Gallery and install it.
Restart the Visual Studio and then try the installation. You should get the Windows Phone toolkit installed 🙂
1 Comment
Would be nice to leave instructions on how to install what they give you. When you download that new NuGet Package Manager, there’s no .msi or whatever. How would you reference it from within VS?