AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.4k stars 291 forks source link

Warning when referencing opentk nuget #787

Closed Barsonax closed 4 years ago

Barsonax commented 4 years ago

Summary

When adding AdamsLair.Duality.Backend.DefaultOpenTK to your csproj you will get the following warning message:

MSB3246 Resolved file has a bad image, no metadata, or is otherwise inaccessible. Could not load file or assembly 'OpenALSoft64.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.    

This seems to be caused because this is a native dll and thus needs to be in a different folder in the nuget package https://stackoverflow.com/questions/48122173/warning-when-using-nuget-package-that-contains-native-dll

Barsonax commented 4 years ago

So I tried using the runtimes folder for the native openal dlls but couldn't get it to work. Documentation is quite scarce so I think Ill just let it rest for now since it only gives a warning.

Barsonax commented 4 years ago

Since we know this does not break anything we might consider adding a ignore for this particular warning in the template