Skip to content
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

NuGet for UWP apps cannot call C++ libraries #2350

Closed
sriniketana opened this issue Mar 17, 2016 · 3 comments
Closed

NuGet for UWP apps cannot call C++ libraries #2350

sriniketana opened this issue Mar 17, 2016 · 3 comments
Labels
Resolution:NeedMoreInfo This issue appears to not have enough info to take action
Milestone

Comments

@sriniketana
Copy link

I have a C# library for UWP packaged into an NuGet package. This C# library in turn calls a C++ library internally. When packaged as a NuGet package, the C# library is not able to find and call the C++ library.

My nupkg structure is given below - as documented in https://docs.nuget.org/create/uwp-create#native-light-up

runtimes\win10-x86\lib\uap10.0
---- MyCSharpLib.dll
---- MyCSharpLib.pri

runtimes\win10-x86\native
---- MyCPPLib.dll
---- MyCPPLib.winmd

I've also tried placing the CPP lib in the same folder as the C# lib but still the issue persists.

@jmevel
Copy link

jmevel commented Oct 18, 2016

Same issue for me, this is driving me crazy. By any chance did you solve it since March?

@sriniketana
Copy link
Author

@koenigsbier I took help from this suggestion - #1221 (comment)
Use corflags to generate arch independent version of the DLL.

@emgarten emgarten added this to the 4.7 milestone Feb 2, 2018
@emgarten emgarten added the Resolution:NeedMoreInfo This issue appears to not have enough info to take action label Feb 2, 2018
@emgarten
Copy link
Member

emgarten commented Feb 2, 2018

I do not see any mention of what isnt working or what is expected here.

Runtime/ should always be used with ref/, runtime just does a copy to the output folder at publish time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution:NeedMoreInfo This issue appears to not have enough info to take action
Projects
None yet
Development

No branches or pull requests

3 participants