I have .net core project TestNuget.zip (277.6 KB)
with nuget reference and want to run the console app using the latest stable Elements version but I get error :
~> Process ConsoleApplication6 started
Error:
An assembly specified in the application dependencies manifest (ConsoleApplication6.deps.json) was not found:
package: 'Microsoft.Win32.SystemEvents', version: '4.5.0'
path: 'runtimes/win/lib/netcoreapp2.0/Microsoft.Win32.SystemEvents.dll'
Water cannot find an assembly from nuget reference. I checked ConsoleApplication6.deps.json and there runtimeTargets points to “runtimes\win\lib\netcoreapp2.0\Microsoft.Win32.SystemEvents.dll” which is not valid for nuget reference. I also tried to use “Copy Local” option and although the files are copied to bin directory, the error remains. The only solution for now is to remove ConsoleApplication6.deps.json file.
How can I run such project under Water ?
For me it runs fine, except for this exception, which sounds like it might be a .NETCore/macOS limitation (Mono has issues with gdiplus too); when I comment out the creation of the bitmap, it runs without error…
Unhandled Exception: System.TypeInitializationException: The type initializer for ‘Gdip’ threw an exception. —> System.DllNotFoundException: Unable to load DLL ‘libgdiplus’: The specified module could not be found.
k, then nothing major changed since then. can you send me your Bin folder, so I can compare it to mine? I’m attaching my copy, does that run for you (you might need to adjust the paths in ConsoleApplication6.runtimeconfig.dev.json)?
Could be, but iirc your issue repros for me, and I just didn’t know what was wrong, while this one runs fine for me. Does Artur’s project work for you, John?
Maybe the .net core 3.0.100-preview5 is messing here. Why it is searching the nuget package dlls in .net core runtime directory? Or I’m misinterpreting the error message. The path “‘runtimes/win/lib/netcoreapp2.0/Microsoft.Win32.SystemEvents.dll’” is relative to which directory?