-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Using PublishSingleFile and IncludeNativeLibrariesForSelfExtract on macOS causes a "Class PlaceholderObject is implemented in both" warning #29658
Comments
Where does the error come from? What do you use to build the native code (as the error seems to be from the native side of things). |
Actually - looking at the failure some more... I guess this is at runtime right? When you |
This is when executing
The native PInvoke code we use in our project is built with Clang (on macOS) and is imported from a class library into the executable application. But it doesn't seem that the error is coming from the C code side of it. With PublishSingleFile |
Same issue here with dotnet sdk 8.0, when I do
|
The same; building console app using dotnet 7.0, osx-arm64: running the compiled executable produces the notice: |
Describe the bug
We're using a native C library for some performance critical parts of our application. This library gets called from our C# code using PInvoke. Recently we've been experimenting with single file publish which would allow us to package the native library with the application, but we're getting the following warning every time the application starts with
dotnet run
:To Reproduce
As far as I've tested it seems that adding these two
csproj
options on macOS is what is causing the warnings:Exceptions (if any)
Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: