How to install custom Xamarin.Forms.<version>.nupkg in VisualStudio 2017? - xamarin.forms

After creating .../.nuspec/Xamarin.Forms.9.9.1.nupkg via a variant of https://github.com/xamarin/Xamarin.Forms/wiki/How-to-Build-Xamarin.Forms-NuGet (e.g., I built locally instead of VSTS), how do I install it for use as my copy of Xamarin.Forms in my various projects in VisualStudio 2017?
One would think that configuring a NuGet Package Source via VS2017 > Tools > NuGet Package Manager > Package Manager Settings aiming at that .../.nuspec directory would simply cause NuGet to pick it up from there, but, no, it doesn't find any nuget there.

Doh! The NuGet Package Source via VS2017 > Tools > NuGet Package Manager > Package Manager Settings needs to aim at that ... directory without the /.nuspec

Related

nuget package manager console not working, package source dropwdown is disabled and empty

I'm new to asp.net, and I'm trying to run migrations, but I can't make the nuget console manager to work. I've installed everything:
the .NET core
Nuget package management extension
but I still can't work it out.
(the nuget.org source package is already installed and checked)

Specified Web Pages version “3.0.0.0” could not be found. Update your web.config to specify a different version. Current version: “2.0.0.0”

I have this problem in my web service:
Specified Web Pages version “3.0.0.0” could not be found. Update your
web.config to specify a different version. Current version: “2.0.0.0”
Install Microsoft.AspNet.WebPages nuget package by entering this line in package manager console:
Install-Package Microsoft.AspNet.WebPages -Version 3.0.0
Or find and install it using Nuget Package Manager.
Go to the Nuget Package Manager in Visual Studio Code. Search for Microsoft.AspNet.WebPages and update this package if you already have the latest one the you should try to downgrade one version previous.
Or
You can run the below command in Package Manager Console in Visual Studio:
Install-Package Microsoft.AspNet.WebPages
This will resolve the issue.

Using .netstandard2.0 NuGet with .NetFramework4.6.2

I have a project in .NetStandard2.0 and this has to be used as a nuget in 2 projects, one in .NetCore2.2 and the other in .NetFramework4.6.2. Installing the nuget in .NetCore2.2 had no issues, but when I'm trying to install this package in the other project, I'm getting the following error -
Could not install package 'packageName'. You are trying to install
this package into a project that targets
'.NETFramework,Version=v4.6.2', 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.
I also tried changing the target framework of this project from .NetFramework4.6.2 to .NetFramework4.7.2, but I'm getting the same error. Am I doing something wrong?
I had opened the Framework project in Visual Studio 2015 and this was causing the issue on trying to install the nuget package which was created in .NetStandard2.0. It was successfully installed when I tried it in Visual Studio 2017.

Where can I find the identity packages in VS 2017?

I have tried a lot to find an identity package in VS 2017. I have tried by right clicking on project, in Manage nuGET packages, but I am unable to find packages.
On Manage nuGet Packages search for Microsoft.AspNet.Identity.Core
or
In package manager
Install-Package Microsoft.AspNet.Identity.Core

issues for NuGet after migrating a c# project

i'm trying to migrate a project into my visual studio 2012.
On the Manage NuGet Packages, I have this issue:
"Some NuGet Packages are missing from this solution. Click to restore from your online package sources"... but when i click on the restore button, it appears this issue:
"an error occurred while trying to restore packages: Unable to find version '4.1.0-alpha-121112' of package 'Microsoft.AspNet.WebApi'. "
i'm using .NET Framework 4
How can i solve?
Thanks in advance....
The problem is that version '4.1.0-alpha-121112' of package Microsoft.AspNet.WebApi does not exist on NuGet.org. It is not available on MyGet from the ASP.NET Web Stack Nightly package source either. So NuGet cannot restore it since it is no longer available.
Looking at Symbol Source it looks like this NuGet package was at one point available from the ASP.NET Web Stack Nightly package source on MyGet but it no longer seems to be available. I suspect they have deleted the old packages from that MyGet package source.
Unless you can find the original NuGet package, you will either have to manually remove the NuGet package reference, by editing the project file and packages.config file, and reinstall a version that exists.
1) Make sure you upgrade to the latest NuGet.
2) Make sure you're doing package restore "The Right Way" http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html
That should resolve the issue.
if still this ain't solve you can see this Rightway to migrate

Resources