#Package C++ assemblies as NuGet

2 messages · Page 1 of 1 (latest)

low pebble
#

I am a C# developer, so please be easy on me.

As the title describes, I want to package a (legacy) VS2013 compiled C++ source into a NuGet and reference the package to my C# library. Similar to C#, I just included the generated assemblies into the package and it works fine - locally. Testing it to other machines, I figured that I need to install vcredist 2013.

Question now is how do I make sure vcredist 2013 is installed in my deployments. I checked other NuGet packages probably similar to mine, e.g. https://www.nuget.org/packages/librdkafka.redist/. In that package, they included msvcr120.dll in the runtime folder. Is this a standard practice? So if I included the msvcr120.dll in my supported runtimes which is only windows, then deployment should be fine as long as msvcr120.dll is copied in my published C# application.

warm deltaBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.