Issues with full Framework build #33
Description
Hi there,
I've been evaluating a couple of MozJpeg / LibJpeg libraries for some post-processing work, and had some issues getting the full Framework (I've tried in console applications with net45 and net471) build working locally. I encountered the following issues:
-
The dlls are not copied from the packages folder into the bin folder as part of a build unless you are using both a new style .csproj AND you have included a RuntimeIdentifier in the csproj. This does, however, work regardless of your values for AppendTargetFrameworkToOutputPath and AppendRuntimeIdentifierToOutputPath.
-
The dlls cannot be read from the location they are copied to using the existing code. This is because they look in a subfolder for the dll, rather than in the root, as you can see here:
This appears to fail because AppDomain.CurrentDomain.SetupInformation.ApplicationBase
already includes the RuntimeIdentifier portion of the path, and it does not need to be appended again (Meanwhile, the dll is now located in the folder located by AppDomain.CurrentDomain.SetupInformation.ApplicationBase
).
I've worked around this issue by creating those folders manually and pasting the dlls into them as part of my build process, so this is not a blocker.
Thanks!
Activity