Closed am11 closed 2 years ago
It would also be nice to use target platform's default file naming conventions into account: https://github.com/dotnet/runtime/blob/0aa3930099720918adf2e4409fa2189fce0d0e01/eng/native/naming.props#L35
i.e. instead of nativelib1.so
, I was expecting libnativelib1.so
on linux.
Using
7.0.100-preview.5.22262.14
daily build.Create a classlib project using
dotnet new classlib
and publish it with the following command:it fails with the following error:
Fix is to specify
NativeLib
property.It would make sense when NativeLib is unspecified for OutputType != Exe, its value is defaulted to
Shared
by the SDK.cc @LakshanF, @agocke