I'm having problems trying to use Xamarin with Visual Studio 2017 in Windows 10. I use the Visual Studio Installer to get the Mobile Development tools, including Xamarin, but when I create a Cross-platform template of type Mobile app (Xamarin.Forms) I get a few error messages saying:
Error NU1101 Unable to find package Xamarin.Forms. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Android.Support.v7.MediaRouter. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Android.Support.Design. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Android.Support.v7.AppCompat. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Android.Support.v7.CardView. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Android.Support.v4. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Forms. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source App2 C:\Users\rca_r\Documents\Visual Studio 2017\App2\App2\App2\App2.csproj*
So I can do basically nothing. Seems like a problem with paths or references, I don't know. I hope you can help me.
Thanks in advance.
It seems Visual Studio is trying to find the packages only among the offline package sources, while they are available on NuGet. I would suggest first checking your internet connection and then checking the NuGet Package sources.
In Visual Studio go to Tools -> NuGet Package Manager -> Package Manager Settings. Here select the Package Sources tab in the tree on the left. You should see the following:
If the nuget.org package source is missing, add it manually by clicking the green plus button in the top right corner and setting:
Name: nuget.org
Source: https://api.nuget.org/v3/index.json
Related
I am trying to create a nuget package from a class library project in Visual studio 2015, In Project properties ---> package tab is not available/ visible.
IN the package tab we define the nuget package details.
Is it because of the visual studio 2015 issue or should I look for it somewhere else ?
VS2015 IDE does not support that.
The Package tab(Generate Nuget package on build) is the feature of new sdk style lib project.(Net Core and Net Standard).
And the new sdk projects are released since VS2017 while VS2015 does not support it -- You can not create any Net Core or Net Standard projects and only the Net Framework lib projects which does not contain the feature.
So you should use VS2017 or later VS and then create a Net Core or Net Standard lib project and then you can find it.
I am working on a Xamarin.Forms app in Visual Studio using Visual Studio Online Team Explorer. But whenever I try to build my main project or iOS project I get the following error:
/Users/test/Visual Studio/workspace/MyProject.iOS/MyProject.iOS.csproj(5,5): Error: This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ../../packages/Xamarin.Forms.2.5.1.444934/build/netstandard1.0/Xamarin.Forms.props. (MyProject.iOS)
I tired looking for the NuGet store but couldn't find it on the mac version. It is already installed on my windows laptop that also uses it.
In Visual Studio for Mac, you can manipulate your packages using the Project menu. In your case, you'll want to use Project|Restore NuGet Packages.
I have a Visual Studio 2010 Solution Template.
When the user creates a solution using this template I want NuGet to get the latest version of that a package and install it.
The package is my own, shared on a network drive, maybe this is the issue.
I've looked at NuGet Restore and the Auto update feature but it still fails to get my package.
Here is a link to how to install packages via Visual Studio Template - http://docs.nuget.org/docs/reference/packages-in-visual-studio-templates.
Currently NuGet supports three package repositories, as discussed by the document. Your template can install a fixed version of NuGet packages; and the template consumer will need to update to the latest version themselves.
I am trying to install JSNLog through Package Manager Console in Visual Studio 2010 as per the instructions given in http://www.jsnlog.com/Documentation/DownloadInstall but I am getting installation error...as below.
I am wondering that has something changed with the command ?? and also how can we restore the missing NuGet packages from the project solution -- I updated the NuGet version
Environment I have is
Visual Studio 2010 Professional and NuGet from https://www.nuget.org/api/v2/
Main Purpose of using JSNLog is to implement client side Logging in my project...
Any thoughts pelase...
I am using VS 2010. Want to install Sendgrid Nuget package.
So on package manage console I give following command.
PM> Install-Package Sendgrid
which gives error as follows:
Id is required.
Version is required.
Authors is required.
Description is required.
Even if try this from solution explorer, by adding package reference online, it gives same error.
How can I download this Sendgrid package?
I have faced similar issues on Visual Studio 2010 and later found that same pkg can be installed via Visual Studio 2012. Most probably you need to update your Nuget pkg manager in Visual Studio 2010.
Go to Tools -> Extension Manager -> Updates -> Update Nuget
In my case I had to update from version 1.0.11220.104 to 2.5.40416.9020.
Another thing I would like to point that you might face this error while trying to update Nuget.
"The signature on the update version of 'NuGet Package Manager' does not match the signature on the installed version."
In that case, uninstall Nuget, restart VS 2010 and install Nuget again. Source: http://docs.nuget.org/docs/reference/known-issues