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.
Related
I have Visual Studio 2017 with Xamarin installed.
I want to update to Xamarin.Forms 3
I understand that I have to use NuGet to install the Xamarin Forms 3 NuGet package.
However, to install to NuGet package I need to open a solution in Visual Studio first.
When I open a solution and install the NuGet package - will this package (Forms 3) only be available for that solution?
I need Forms 3 to be available for all new solutions that I will create in future...
If you have at least Visual Studio 2017 15.7 installed then the latest Cross-Platform project templates provided by Xamarin use the Xamarin.Forms 3.0 NuGet package.
For existing projects you have created you would need to update the Xamarin.Forms NuGet package yourself.
I am trying to add a nuget package (PiranhaCMS) to my VS2012/NET45 project. The nuget package itself depends on AutoMapper. When I try to install I get the message
'AutoMapper' already has a dependency defined for 'NETStandard.Library'
I'm confused because Piranha itself depends on NET45 not NETStandard. Research indicates I might need a later version of nuget. Having invoked nuget update -self on the nuget.exe in the .nuget folder under the solution, I tried again but got the same message.
What's further confusing me is nuget.exe is on 4.2.0.4168 but VS2012's Help, About dialog says the NuGet Package Manager is on 2.8.60318.667.
What I need to know is, can I get this package installed into this VS2012 solution? If so, how? If I can't do I need to move to VS017 so I can use a later version of NuGet which will install the package for me, even if the solution continues to target NET45?
can I get this package installed into this VS2012 solution? If so, how?
We could not get this package installed into this Visual Studio 2012. That because full NetStandard and NetCoreApp support for VS2013 (NuGet version is 2.12) and the latest version for Visual Studio 2012 is 2.8.6. so we will get that error when we install the package "PiranhaCMS" by Visual Studio 2012.
You can refer to the NuGet release note for 2.12 for detail info.
If I can't do I need to move to VS017 so I can use a later version of
NuGet which will install the package for me, even if the solution
continues to target NET45?
Yes, you can install that package to the solution continues to target NET45 on Visual Studio 2017.
I have a mixed environment where some developers are working on Visual Studio 2013, and others are working on 2015. Everything worked fine until we updated a referenced NuGet package from Visual Studio 2015.
Now, when trying to restore the NuGet packages from Visual Studio 2013, I see the following error:
NuGet Package restore failed for project Foo: The 'System.Linq 4.0.0' package requires NuGet client version '3.0' or above, but the current NuGet version is '2.8.60723.765'..
Apparently, there is no NuGet version 3.x for Visual Studio 2013.
Is there a solution to continue working with both Visual Studio 2013 and 2015?
Sigh, a team that can't make up their mind about what tools they use, what could possibly go wrong? Well this. And the other rather nasty problem, that package is meant for projects that target CoreCLR and the Win10 flavor of Universal apps. You cannot create nor build such a project on VS2013. So trying to solve the Nuget version problem doesn't buy you anything.
You guys need to get together and hammer-out what projects you are going to work on. If CoreCLR is what everybody wants to do, and do ask why, then everybody must update to VS2015.
As Hans Passant noted in his reply, there is no need for NuGet 3.0 on projects which are only targetting the vanilla .NET 4.5 framework (and that's what Visual Studio 2013 was meant to target in our case).
It was the addition of an updated NuGet package, specifically System.Collections.Immutable 1.1.37, which introduced a dependency on .NETPlatform,Version=v5.0, which in turn triggered the accidental dependency on NuGet 3.0.
Returning to version 1.1.36 of that package solved the issue.
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.
I want to add a library package reference to NUnit so that I can do some unit testing. When I try to download the package and add the reference, I get this error:
The schema version of 'NUnit' is incompatible with version 1.2.20325.9034 of NuGet. Please upgrade NuGet to the latest version from http://go.microsoft.com/fwlink/?LinkId=213942.
So then I go to this URL and download the file NuGet.Tools.vsix. When I double click it, I get the error: "Invalid command line arguments." So I then run Web Platform Installer 3.0, but I can't figure out how to upgrade NuGet from there either. Finally, I was able to install version 1.6.2 of NuGet.Core from inside of Visual Web Developer via "Add Library Package Reference" under the Project menu. However, when I try to install NUnit the same way, it still gives me the error that it is incompatible with version 1.2... of NuGet, even though it appears that Nuget.Core is now upgraded to version 1.6.2!
Any idea what is going on?
I am using Visual Web Developer 2010 Express on Windows 7. Also, I am using wpilauncher_3_10.exe.
I followed this web site Link
In order to unistalling nuget follow Visual Studio 2010 - Uninstall NuGet
And you can download and install nuget from here download Nuget