Install package Mvc 6 Beta 2 on VS 2013 Fails via nuget - visual-studio-2013

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

Related

Visual Studio 2022 lists Automapper which is an incompatible nuget update

Visual Studio lists AutoMapper 11.0.1 in the Nuget packages Updates list when all projects target .NET Framework 4.8, which is incompatible with 11.0.1. Is this normal, or is there an error in my solution configuration, a bug in Visual Studio or something else? When I attempt to install it I get this error - Could not install package 'AutoMapper 11.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8', 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.

Error consuming .Net Standard NuGet package from Visual Studio 2015 project [duplicate]

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.

Visual Studio 2017 - Install Xamarin Forms 3 NuGet package into solution

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.

Entity framework with oracle 11g and dot net 4.0

I was trying to figure out which version of entity framework and ODP.NET should be used with MVC4 (Dot NET 4.0).
I have Visual Studio 2010 & have created MVC 4 app.
Then I installed EntityFramework
and
while installing Oracle.ManagedDataAccess.EntityFramework
I got following error
Could not install package 'Oracle.ManagedDataAccess.EntityFramework
12.1.021'. You are trying to install this package into a project that targets '.NETFramework,Ve rsion=v4.0', 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.
Can some one please guide me on how to install EntityFramework for oracle using Visual Studio 2010.
Thanks!!! Help will be appreciated.

Json.net can not install in visual studio 2012

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.

Resources