ajl
ajl

Reputation: 714

Do I need the .Net framework installed to run a vc++ 2008 exe?

Does a vc++ exe require the .Net framework to run, or will it run without the framework?

Upvotes: 2

Views: 502

Answers (4)

Sohail xIN3N
Sohail xIN3N

Reputation: 3041

Certainly you will need the .Net Framework installed for running the application,
(If you want to see the target Framework version then go to Project tab and select name of project Properties in Visual Studio).

Upvotes: 3

dkackman
dkackman

Reputation: 15579

Unless it is compiled with the /clr flag you do not need the .NET framework. Of course if your c++ exe uses any .net components via COM interop you're back to needing the framework installed.

Upvotes: 6

Patrick
Patrick

Reputation: 23629

Pure C++: no. Check your compile and link options to see if it includes .Net options (/clr) or libraries.

If not sure, use DependencyWalker to see which DLL's are actually required by your application.

Upvotes: 2

Samir Talwar
Samir Talwar

Reputation: 14330

If you're using Managed C++, then yes, you will. However, if you're making a pure C++ application, you should just need the Visual C++ 2008 Runtime, which is a whole lot smaller.

Upvotes: 4

Related Questions