Robin Rodricks
Robin Rodricks

Reputation: 113966

Which VC++ Runtime do I need if I'm using C++/CLI in VS 2010?

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".

Upvotes: 1

Views: 287

Answers (3)

wborgsm
wborgsm

Reputation: 186

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

Upvotes: 1

Murtuza Kabul
Murtuza Kabul

Reputation: 6514

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

Upvotes: 1

AB Bolim
AB Bolim

Reputation: 2115

your job ll be done by using this one.

Visual C++ 2008 -- 2 MB

I am using the same.

Upvotes: 2

Related Questions