0

I have a .net dll that requires msvcp110.dll to run. When I use my .net dll in another app the app gives dependency errors. However, when I set the output path of my app to the same folder that contains msvcp110.dll it runs.

Is there some way I can reference msvcp110.dll in my .net dll such that consumers of my dll only have to add a reference to it for their app to run?

Thanks!

Pat Mustard
  • 1,852
  • 9
  • 31
  • 58
  • Installing the VS C++ runtime should clear that up - `msvcp110.dll` is part of the C++ runtime install. IIRC, the `110` is the VS2010 or VS2012 version... – Niall Aug 26 '16 at 08:58
  • It doesn't - the runtime dll has to be in the same folder as the consuming app. Or maybe I just need to restart my PC... – Pat Mustard Aug 26 '16 at 09:00
  • _However, when I set the output path of my app_ - do you run it from the IDE or from explorer? – Niall Aug 26 '16 at 09:02
  • I run it from the IDE – Pat Mustard Aug 26 '16 at 09:04
  • If the correct version of the runtime is installed and the problem is from the IDE, it may be a manifest problem of some sort. If it fails to run from explorer, an easier alternative then is to use a dependency viewer (such as Dependency Walker) to try diagnose the error. – Niall Aug 26 '16 at 09:08
  • It doesn't run from the explorer unless the app is in the same folder as it's dependencies. – Pat Mustard Aug 26 '16 at 09:14

1 Answers1

0

For the sake of completeness this seems to be the answer:

Visual C++ 2010: Changes to MSVC runtime deployment (no more SxS with manifest)

I tried installing my dll to the GAC but to no avail - my app still complained about missing dependencies such as msvcr100.dll

o_O

Community
  • 1
  • 1
Pat Mustard
  • 1,852
  • 9
  • 31
  • 58