Xamarin.Forms not working in Visual Studio for Mac - visual-studio

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.

Related

Not finding Microsoft.Maui.Controls.Maps NuGet package

I installed latest visual studio preview (Visual Studio Community 2022 Preview - 17.4.0 Preview 3) with .NET 7 include. I started a new project to experience the new Map control and selected the target .NET to be net7.0. Now when searching for the NuGet package Microsoft.Maui.Controls.Maps I'm unable to find it in the NuGet solution. How and where can I install it?
Maps is only available as a pre-release at the moment of writing: https://www.nuget.org/packages/Microsoft.Maui.Controls.Maps
You need to tick the check box that says Include prerelease when you search for NuGets in the Package Manager.

Xamarin Code Behind Missing After Updating Nuget Package

Today, I updated a nuget package, and after this, my code behind for several content views was missing. I can't find the missing files in finder or in my solution. Using Visual Studio 2019 for Mac.
Tried:
Clean and Rebuild, unload, and restart Visual studio and Machine.
See fix from VS Community Boards: https://developercommunity.visualstudio.com/t/vs-2019-for-mac-losinghiding-files/875292

Xamarin Firebase package doesn't exist in visual studio

I have a Xamarin.forms project that requires ML Kit from firebase, so I wanted to download this package, Xamarin.Firebase.ML.Vision. The problem is that when I try to add it in Nuget in Visual Studio, the package doesn't show up. How do I get it?
It's still in preview. You need to enable the Include pre-release for it to show up in nugets

xamarin studio, add nuget plugin

I've found a NuGet plugin I would like to install, but using Xamarin Studio on Mac I don't have Package Manager Console so i can't type the
Install-Package My.Wanted.Plugin -Version 1.0.0.0
According to is there a package manager console in xamarin studio there is a workaround, but it didn't work for me.
So my questions is; is there another (probably longer and more complex) way to install NuGet plugins to Xamarin Studio?
Thanks in advance!
For Xamarin Studio 5.9 you can use version 0.6.1 of the NuGet extensions addin. Currently this is not currently available from the main MonoDevelop addin repository but it is available to download from GitHub.
Download the mpack file, then open the Add-in Manager and select Install from file. You may need to restart Xamarin Studio afterwards.

Install-Package : Unable to find package 'JSNLog'

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...

Resources