I'm using Visual Studio 2013. I create a new project Windows Form Application (C#), with target framework in tab Application in Properties of the my project: .NET Framework 3.5.
When I open NuGet and search EmguCV and click install show this error:
Installing 'VVVV.EmguCV 2.4.2.1'.
Successfully installed 'VVVV.EmguCV 2.4.2.1'.
Adding 'VVVV.EmguCV 2.4.2.1' to RadarOCR.Desktop.
Uninstalling 'VVVV.EmguCV 2.4.2.1'.
Successfully uninstalled 'VVVV.EmguCV 2.4.2.1'.
Install failed. Rolling back...
Could not install package 'VVVV.EmguCV 2.4.2.1'. You are trying to install this package
into a project that targets '.NETFramework,Version=v3.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.
I do not know what's wrong! Help-me please!
The error message tells you what the problem is:
You are trying to install this package
into a project that targets '.NETFramework,Version=v3.5', but the package does not contain
any assembly references or content files that are compatible with that framework.
The VVVV.EmguCV NuGet package does not support being installed into a project that targets .NET 3.5.
Looking inside the VVVV.EmguCV NuGet package it has custom MSBuild target files for .NET 4.0 and no other .NET framework version. So if you want to install it you would need to change your project so it targets .NET 4.0 or higher.
Related
I am trying to install System.Runtime.Handles so I can use SafeAccessTokenHandle and RunImpersonated, however when I try to install the package I get the error :
Could not install package 'System.Runtime.Handles 4.3.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.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 have done some research and I do not believe there is a .NETFramework, Version=v4.3.0. Does anybody have an idea on how to install this package?
I have done some research and I do not believe there is a .NETFramework, Version=v4.3.0. Does anybody have an idea on how to install this package?
First, you have to make sure the version of NuGet Package Manager for Visual Studio 2013 is the latest version 2.12.0.817, not the default version 2.8. You can check it from Tools->Extensions and Updates->Installed.
That because this nuget package require the NuGet 2.12 or higher.
Second, you should make sure you have installed the .net 4.6 and above. You should not change the framework version by unloading the project, opening the project file, changing the target framework, and then reloading the file. In this way, Visual Studio can not help to check if you have install that target framework. You should change it by right on the project select Properties->Application->Target framework:
If you do not have target framework .net 46, you can click the Install other frameworks to install it. For this question, you can just change your target framework to 4.7.1 directly.
Hope this helps.
So I am working with .NETFramework,Version=v4.5 and I need to use Microsoft.Owin.Security.Google as well as Microsoft.Owin.Host.SystemWeb. However I'm getting the following error when trying to install said NuGet packages:
Could not install package 'Microsoft.Owin 4.0.0'. 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.
Is there another way to use Microsoft.Owin NuGet packages in a .NETFramework project?
Change your Framework version to v4.5.1 or later:
When I try to install Firebase Messaging Nuget package on the solution it gives me this error -
"Could not install package 'Xamarin.Firebase.Messaging 42.1021.1'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.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."
And for the android installation it says
"Could not install package 'Xamarin.Firebase.Messaging 42.1021.1'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.6,Profile=Profile44', 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."
How do I get it to install?
The solution is to use the latest stable Xamarin.Forms and have your project's compileSdkVersion (so Target Framework) set to 7.0 or higher. You will then be able to install newer versions of Android Support and therefore Google Play Services packages.
Happy coding!!
I tried to add Microsoft.Rest.ClientRuntime v2.3.10 via Nuget to a standard Xamarin PCL project and got following error:
Could not install package 'Microsoft.Rest.ClientRuntime 2.3.10'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework.
The targets for the project as as follows:
Solution was just to install version 2.0.0 of Microsoft.Rest.ClientRuntime, which is portable.
I wanted to install Taglib via NuGet in Visual Studio 2013. Is there any way?
I get the following error message:
Install failed. Rolling back...
Install-Package : Could not install package 'taglibcpp 1.9.1-beta8'. 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.