Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Issues with full Framework build #33

Open
@0shi

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:

  1. 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.

  2. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions