Skip to content

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

@sriniketana

Description

@sriniketana

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution:NeedMoreInfoThis issue appears to not have enough info to take action

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions