Prerequisites for deploying a .NET C ++ / CLI DLL?

I wrote a C ++ / CLI DLL for use with my .NET GUI. On my local development machine, everything works as expected. My GUI application says that it cannot load my C ++ / CLI DLL on any other machine. He always says that he cannot load my DLL or one of its "dependencies". So I thought, maybe this is some kind of missing C runtime or something like that?

Are there any prerequisites that must be installed before using my C ++ / CLI DLL on another machine? Strictly in terms of .NET or C ++ at runtime or something else.

Edit: Sorry. This is VS2012, .NET 4.0, Platform Toolset v110.

+4
source share
1 answer

In addition to dependencies that other .NET languages ​​have (for example, the .Net framework), the C ++ / CLI requires a C ++ runtime.

You can download the current C ++ environment distributed for VS 2012 from Microsoft. Select the x86 or x64 version based on the compilation option of the C ++ / CLI assembly, and not the version of Windows on which the target machine is running.

Note that this is only the runtime for compiling Release. Debug components use a different runtime that is not redistributable, and is installed only with Visual Studio.

+3
source

Source: https://habr.com/ru/post/1502677/


All Articles