Skip to content
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

Version 3.0.8 places the runtimes folder incorrectly #437

Closed
madushans opened this issue Jul 6, 2020 · 3 comments
Closed

Version 3.0.8 places the runtimes folder incorrectly #437

madushans opened this issue Jul 6, 2020 · 3 comments
Assignees
Labels
Milestone

Comments

@madushans
Copy link

It seems like Microsoft.NET.Sdk.Functions version 3.0.8 places the runtimes folder inside netcoreapp3.1\ instead of netcoreapp3.1\bin.

I noticed this breaks the latest version of ImageMagick.NET as it cannot find its native library due to this change. There probably are other libraries affected by this change as well.

image

@mr-davidc
Copy link

This is also the cause of #436, at least for me.

@madushans
Copy link
Author

Potential workaround if you cannot downgrade to 3.0.7

Put the below in your csproj, which will move the runtimes folder to the expected place after the build completes.
(Not sure if this breaks other things though)

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <Exec Command="ECHO Moving Runtimes folder" />
    <Exec Command="move /Y $(OutDir)runtimes $(OutDir)bin\runtimes" />
</Target>

@vijayrkn
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants