DllImport only allows for a compile time difference in the name of the library to import, but there may be other options. Ideally, we should be able to eliminate the remaining compile time code changes pretty easily, but this one is the hardest. https github.com dotnet corefx blob master src System.Runtime.Loader ref System.Runtime.Loader.cs#L31 https github.com dotnet corefx issues 3054 https github.com dotnet coreclr issues 930 https stackoverflow.com questions 11518577 dynamically and statically importing unmanaged c dlls into c sharp does not wo VSO create date - 1/7/2016 16:20:00