when i am installing Newtonsoft.json using Nugget package manager then i am getting error like this
i am having .net framework version 4.5.50709
Update your nuget manager to 2.6 and restart visual studio.
Related
After updating the visual studio to the latest version i'm facing the below mentioned error.
Could not find or load main class com.xamarin.androidx.jetifierWrapper.Main xx.xx.Droid
tried below mentioned points without any luck:
Deleted all package folder and restored
Updated the package to latest available version (XF to 5.0)
Uninstalled visual studio and re-installed
Re installed the Android SDK
Deleted Bin-Obj, clean and rebuild multiple times
Using the below mentioned Visual studio and package version:
Microsoft Visual Studio Professional 2019
VisualStudio.16.Release/16.11.8+32002.261
Microsoft .NET
Framework Version 4.8.04084
Xamarin 16.11.000.197
(d16-11#6934992)
Xamarin.Android SDK 12.0.0.3 (d16-11/f0e3c2d)
Package:
xamarin.android.support.xx version : 28.0.0.3 targetFramework="monoandroid10.0"
Xamarin.AndroidX.Migration version : 1.0.8
Please let me know if anyone have any suggestion/solution.
Thanks
I'm trying to install a Nuget package that targets .NetStandard 2.0 (Microsoft.Extensions.Logging.Abstractions) into a Net 4.6.1 project in Visual Studio 2015. However, while Frameworks should be compatible, it doesn't quite work:
Install-Package : Could not install package 'Microsoft.Extensions.Logging.Abstractions 2.0.0'. You are trying to
install this package into a project that targets '.NETFramework,Version=v4.6.1', 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.
At line:1 char:1
+ Install-Package Microsoft.Extensions.Logging.Abstractions
I've followed the steps outlined here: Entity Framework Core 2.0 on .NET 4.6.1
So I have installed package "NETStandard.Library.NETFramework", and added
<PropertyGroup>
<PackageTargetFallback>netstandard2.0</PackageTargetFallback>
</PropertyGroup>
to the csproj. But, no luck there - still the same issue.
Is there any way to install a NetStandard 2.0 package into my project (without upgrading VS or installing any Net Core targeting packs or such)?
Thanks
Referencing .NET Standard 2.0 packages is supported using the following:
NuGet 3.6.0 or higher for VS 2015 (from NuGet's download site - may not yet be listed as recommended latest)
Install the ".NET Standard Support for Visual Studio 2015" from https://aka.ms/netstandard-build-support-netfx (NuGet in VS will also print a link to this in its output window).
There are a still few bugs when consuming .NET Standard 2.0 libraries, especially when mixing .NET Standard < 2.0 and 2.0 libraries but these updates give basic support.
Is there any way to install a NetStandard 2.0 package into my project (without upgrading VS or installing any Net Core targeting packs or such)?
I am afraid not. Just like Jon pointed out that the reason for that issue is that you are using Visual Studio 2015.
According to the .NET Standard, .NET Standard 2.0 support .NET Framework 4.6.1 (with .NET Core 2.0 SDK):
So we need install .NET Core 2.0 SDK. And every communication from Microsoft about the preview of .NET Core 2.0 mentions Visual Studio 2017, so I think it's highly recommanded to use Visual Studio 2017 to work with .NET Core 2.0.
Besides, the NuGet package NETStandard.Library.NETFramework is deprecated.
So install a .NetStandard 2.0 Nuget package into a Net 4.6.1 project, I highly recommanded to use Visual Studio 2017 to work with .NET Core 2.0.
Hope this helps.
Running the Nuget Package Manager (client version 3.5.0.1996) for VS 2015 Community Edition to install Npgsql 2.3.4, I get the following error:
Failed to add reference. The package 'Npgsql' tried to add a framework reference to 'System.Collections' which was not
found in the GAC. This is possibly a bug in the package.
Is it really a bug in the package, or something having to do with my edition of VS?
This has been verified and submitted as an issue: https://github.com/npgsql/npgsql/issues/1604. For now either use VS2017 or Npgsql 3.2.3, we'll fix this for 3.2.5.
This is fixed in 3.2.4.1 available on Nuget.
I'm having a problem installing XUnit in my visual studio 2013 using .NET Framework 4.5. Any sol'n?
BTW: I'm installing this using NUGET
Error Image (Click Me)
Instead of using XUnit.Net what I used as alternative is Specflow.xunit and it is working.
I am currently on visual studio 2013 . Now I ran the nuget command
Install-Package Microsoft.AspNet.Mvc -Pre
Now the message clearly says
: Could not install package 'Microsoft.AspNet.Mvc 6.0.0-beta2'. You are trying to install this package into a project that targets
'.NETFramework,Version=v4.5', 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.
Now the package it should install Asp.net Mvc 6.0.0 Beta2 . Now Is that not supported on 2013 yet ? Or should I have to do any extra step. To run it on VS 2013?
Your project uses .NET Framework 4.5, but the MVC 6 needs newer framework(.NET Framework 2015 Preview):
https://msdn.microsoft.com/en-us/library/ms171868%28v=vs.110%29.aspx#core