C++ – Unwanted Dependency on .NET Framework

cinstallshieldmfcnetvisual-studio-2008

I have moved my Microsoft Visual Studio 6.0/C++/MFC application to Visual Studio 2008 SP1 using the new MFC Feature Pack classes. I explicitly use nothing from the .NET Framework. However, we have trouble installing on a system which does not have .NET Framework 3.5 SP1 installed on it already. Installshield fails to load an application dll that it needs to call routines in. Is there an implicit dependency to the .NET Framework built in to every such (C++/MFC) application built using VS2008? And if not, how do I find out what in the application is causing a .NET dependency? I would like to eliminate this dependency if at all possible.

Thanks,
Barry

Best Answer

Are you sure the dependency on the framework itself, and not the VC++ 9.0 runtime? Also, are you sure that the build settings don't include the /clr switch?

Here are the VC++ redistributables: http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en