-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to 4.5.1 not work (from nuget) #399
Comments
I have this problem too when trying to install Emgu.CV.runtime.windows in VS 2019 using NuGet. I am getting the same error message as above. Hope that a solution can be found. |
Just tried the following steps:
Works fine without the above error message. I am using Visual Studio 2019 - v16.8.4 Can you provide detail steps to reproduce your issue? Btw, what is the compilation platform? "AnyCPU", "x64" or "x86"? |
I have the framework 4.8 I was create a new project (Framework 4.8). I THINK IT'S NOT COMPILATED FOR FRAMEWORK 4.8 ONLY FOR .NET STANDARD. On nuget, in the package Emgu.CV.runtime.windows, the dependecies say: .Net Standard 2, but dont come there Net Framework. I dont know if its only a message or a requeriment, but dont read there .Net Framework 4.6 or 4.8 like anothers packages like System.Drawing.Common |
I was download and install Visual Studio 2019 Community (16.8.4) now. Some error: 'Emgu.runtime.windows.msvc.rt.x64 19.28.29336'. 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 |
Same issue here: I created a new WinForms Project, FrameWork=4.8. Any CPU. At Install by Nuget I get this message: |
Please, rebuild the project (Emgu.runtime.windows.msvc.rt.x64) with .Net Framework compatibility and upload to Nuget. |
The target dependency of .NetStandard 2.0 is not an issue here. You can check the Emgu.CV.runtime.windows v4.4.0 nuget package release and can see that it only contains a single binary that targets .NetStandard 2.0. .NetStandard 2.0 is compatible with .NetFramework 4.8 The Emgu.runtime.windows.msvc.rt.x64 packages contains the native runtime for MSVRT and has no other platform dependencies. This is the MSVC redistributable provided by visual studio. There is not specific platform target because they are native binary that are neither based on ".Net", ".Net Framework" nor ".NetStandard". I tried again today to use Visual Studio 16.8.4 to create a new WindowsForms package targeting framework 4.8, "AnyCpu", I also cleared all my nuget cache to make sure I am downloading from nuget.org and not any local cache. Selected Emgu.CV.runtime.windows.4.5.1.4349. All packages sucessfully installed, compiles and run without issue. See the nuget package manager below:
Also tried to install Emgu.CV.runtime.windows 4.4.0 and then upgrade to 4.5.1.4349 without issues. My nuget package manger version is 4.8.1 |
Mine is working now. Maybe it was clearing the cache that helped, although I think that I tried this previously. |
Hi, I clear the Nuget Cache as you recommended and I try update the package. Here my log: |
@Wjat777 Interesting, I noticed that your Nuget Package manager also do NOT resolve the dependency to include the "Emgu.CV" package (see my log above). I wonder why... What is your nuget package manager version? Can you zip up your solution and upload it here? |
Hi,
Microsoft Visual Studio Community 2019 Installed Version: Community It's here |
I was clean nuget packages, but i have the some error like ever... Attempting to gather dependency information for package 'Emgu.CV.runtime.windows.4.5.1.4349' with respect to project 'Backend\Sentidos\Vista\Vision.EmguCV', targeting '.NETFramework,Version=v4.8' |
@Wjat777 Seems like nuget package dependency resolution is broken when using "package.config" to managed nuget package. Microsoft recommend upgrading "package.config" to "package reference": You can perform the migration, by right clicking on "packages.config" follows by a click on the circled option: Once that is done, the error for installing Emgu.CV.runtime.windows nuget package is gone, I can sucessfully install the nuget package with dependency correctly resolved. Looks like "package.config" nuget dependency resolution is broken. "Package reference" works. |
@nombrote I noticed you are also using "package.config", please upgrade to "Package reference" using the instructions above. Let me know if that solves your problem. Thanks. |
Hi, i upgrade the packages.config to package reference and download it correctly, and after that i can upgrade the references, but give me an error (before all was working): When declare a mat (m_frame = new Mat();) Failed to register error handler using RedirectError : en Emgu.CV.CvInvoke.RedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata) |
it works ,, haha im so happy after 2 weeks of frustration ,
|
Closing ticket now. |
I'm trying to update to the new version with nuget.
Its posible to use it on .Net Framework (4.8)? I have a lot of projects (about 60) in the solution and i have problems when try to migrate it.
Severity Code Description Project File Line Suppression State
Error Could not install package 'Emgu.runtime.windows.msvc.rt.x64 19.28.29336'. 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.
The text was updated successfully, but these errors were encountered: