1

Which VC++ Runtime do I need to package with my app installer if I'm using C++/CLI in VS 2010? Assuming the target PC is running Windows XP/Vista/7 and has no other VC++ Runtime installed.

  1. Visual C++ 2005 -- 3 MB
  2. Visual C++ 2005 SP1 -- 3 MB
  3. Visual C++ 2008 -- 2 MB
  4. Visual C++ 2008 SP1 -- 4 MB

I'm targeting .NET 2.0 although I'm building the app with ToolsVersion set to "4.0".

Community
  • 1
  • 1
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607

3 Answers3

2

your job ll be done by using this one.

Visual C++ 2008 -- 2 MB

I am using the same.

AB Bolim
  • 1,997
  • 2
  • 23
  • 47
1

Well, I am seeing C++/CLI, which means that you might need to redistribute the .Net framework also. Most probably framework 2.0 but not sure. You should also check it.

Alternatively, if you are not using CLI, you should remove it from project preference and as suggested by AB Bolim you can go with redistributing C++ 2008

Murtuza Kabul
  • 6,438
  • 6
  • 27
  • 34
  • Would VC++ 2010 be better? – Robin Rodricks Apr 01 '13 at 12:35
  • You must distribute that runtime against which you have built your application. So, if you have built it against VC2008 runtime, you must redistribute it to make it run. – Murtuza Kabul Apr 01 '13 at 12:39
  • I don't know which runtime I'm building against, all I know is that I'm targeting .NET 2.0 - is that VC2008? – Robin Rodricks Apr 01 '13 at 12:59
  • If you want to develop for .Net, C# should be the language of choice. With VC++ you will not get autocomplete and intellisense support from visual studio and it is rumored that microsoft will in future discontinue supporting this architecture. Only reason you should choose C++ for .Net is if you already have considerably developed code in c++ and you do not want to rewrite it. – Murtuza Kabul Apr 02 '13 at 11:41
1

Use Dependency Walker (http://www.dependencywalker.com/) to inspect your mixed mode assembly, it will show you the runtime your assembly depends upon.

wborgsm
  • 186
  • 5