I am trying to install Unity from Nugget in VS2010 and receiving following error:
Could not install package 'Unity 3.5.1404.0'. You are trying to install this package into a project that targets '.NETFramework,Version=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.
Any Idea what could be Wrong?
I understand this package is not for VS2010 but for VS2012 or later. What is the way to get this package for VS2010 or VS2008?
Cheers
The problem is that Unity 3.5 requires .NET 4.5.
Related
I am working on a Ubuntu 18.04 environment using Visual Studio Code and .NET Core v2.2.
After including a few existing projects into a solution that I'm working on, I ran into errors when I tried to compile stating that the namespace "Microsoft.AspNet.Mvc" could not be found.
So, I added a package reference for the projects that were complaining by using the dotnet CLI:
dotnet add package Microsoft.AspNet.Mvc --version 3.0.20105.1
But now when I try to dotnet restore or dotnet msbuild the solution file, I'm getting warnings reporting that:
warning NU1701: Package 'Microsoft.AspNet.Mvc 3.0.20105.1' was
restored using '.NETFramework,Version=v4.6.1' instead of the project
target framework '.NETCoreApp,Version=v2.2'.
This package may not be fully compatible with your project.
I would like to figure out which package version of Microsoft.AspNet.Mvc I need to install in order to be compatible with .NET Core v2.2.
I realize that this is just a warning and using the .NETFramework v4.6.1 may be okay, but I have been debugging a very strange issue that is only happening on a Ubuntu environment, so I would like to determine whether package versioning is a problem.
I have tried Google searching to determine which version of MVC is compatible with .NET Core 2.2, but I have yielded any useful results.
Does anyone know the answer to this question? Or would you be able to point me in the direction of a source that can answer it?
I have a project in .NetStandard2.0 and this has to be used as a nuget in 2 projects, one in .NetCore2.2 and the other in .NetFramework4.6.2. Installing the nuget in .NetCore2.2 had no issues, but when I'm trying to install this package in the other project, I'm getting the following error -
Could not install package 'packageName'. You are trying to install
this package into a project that targets
'.NETFramework,Version=v4.6.2', 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.
I also tried changing the target framework of this project from .NetFramework4.6.2 to .NetFramework4.7.2, but I'm getting the same error. Am I doing something wrong?
I had opened the Framework project in Visual Studio 2015 and this was causing the issue on trying to install the nuget package which was created in .NetStandard2.0. It was successfully installed when I tried it in Visual Studio 2017.
Hi Guys I am using visual studio 2017 to build Xamarin.Forms mobile app.
I installed 'Microsoft.Net.Http 2.2.29' Package from NuGet packages
but i got this warning message :
Package 'Microsoft.Net.Http 2.2.29' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
How can I fix it ??
The Solution is delete the reference and use the HttpClient declared in Namespace: System.Net.Http. its worked with me and no warning message:)
I am doing a Xamarin Forms project and installed CosmosDB nu get package but I am getting the following warnings that I am unable to get rid of
Severity Code Description Project File Line Suppression State
Warning NU1701 Package 'Microsoft.Azure.CosmosDB.Table 1.1.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework 'UAP,Version=v10.0.16299'. This package may not be fully compatible with your project.
Warning NU1701 Package 'Microsoft.Azure.CosmosDB.Table 1.1.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. NWMPosNG C:\Users\MattDouhan\source\repos\NWMPosNG\NWMPosNG\NWMPosNG\NWMPosNG.csproj
How do I resolve this?
Microsoft.Azure.CosmosDB.Table currently only targets .NETFramework 4.5, but .NET Standard support will be out soon.
i'm trying to migrate a project into my visual studio 2012.
On the Manage NuGet Packages, I have this issue:
"Some NuGet Packages are missing from this solution. Click to restore from your online package sources"... but when i click on the restore button, it appears this issue:
"an error occurred while trying to restore packages: Unable to find version '4.1.0-alpha-121112' of package 'Microsoft.AspNet.WebApi'. "
i'm using .NET Framework 4
How can i solve?
Thanks in advance....
The problem is that version '4.1.0-alpha-121112' of package Microsoft.AspNet.WebApi does not exist on NuGet.org. It is not available on MyGet from the ASP.NET Web Stack Nightly package source either. So NuGet cannot restore it since it is no longer available.
Looking at Symbol Source it looks like this NuGet package was at one point available from the ASP.NET Web Stack Nightly package source on MyGet but it no longer seems to be available. I suspect they have deleted the old packages from that MyGet package source.
Unless you can find the original NuGet package, you will either have to manually remove the NuGet package reference, by editing the project file and packages.config file, and reinstall a version that exists.
1) Make sure you upgrade to the latest NuGet.
2) Make sure you're doing package restore "The Right Way" http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html
That should resolve the issue.
if still this ain't solve you can see this Rightway to migrate