-
Notifications
You must be signed in to change notification settings - Fork 17
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
Binaries are not automatically copied to the output directory for managed projects #7
Comments
BTW, the project I was trying this from was targeting .NET Standard 2.0. |
Hey Daniel. .NET Standard is the root of the issue, currently the fNuGet package supports automatic copying in.NET Framework 4.5+ and .NetCore 2+ projects. We'll add .NET Standard to the backlog. |
I am also hitting this issue in some .NET Core scenarios. All that I observe in the output directory is the following structure: ...\CSHARPWINUICONSOLE\BIN\DEBUG\NETCOREAPP3.1 |
@AaronRobinsonMSFT, are you seeing this with AnyCPU solution configurations, resulting in the runtime not finding the native dlls, as they're placed under arch-specific TPM folders? If so, the fix here might be to eliminate those AnyCPU configs (we had to do this with the Package Support Framework). FYI - separately, @manodasanW indicates that .NET core 3.1 should automatically loadlib the binaries in the appropriate TPM subfolder, but that's not working, so the vcrt forwarder nuget explicitly copies them into the TFM folder root. |
I'm running into a similar issue as well: #31 What is the correct/expected behavior? I'd imagine that the native assembly should be loaded from the proper location, which then has a dependency on the vcrtforwarders dll's being next to it. Per @AaronRobinsonMSFT comment here:#7 (comment), the fact these dlls are in |
I'm using this package to supplement a native binary built for UWP so it can be used in non-UWP projects as well. This works fine if the non-UWP project is also native, but when I consume this package (directly or indirectly) from a managed project, the binaries do not get copied to the output directory; I have to add manual build steps to do this. Then everything works great! Can this package be updated to make this happen auto-magically?
The text was updated successfully, but these errors were encountered: