Alain said:
Is there any way to find out where an application uses .NET / NGEN / CLR,
etc? Basically, I'd like to be given the choice to refuse to use or buy
applications that use managed code, and onlyuse applications using native
code.
I'm not even going to ask why, since I have a feeling I'd regret it.
Hum. Install a clean copy of Windows XP and never install .NET. Applications
that use it will then refuse to run. Problem solved. Alternatively, do
install .NET (or an operating system where .NET is preinstalled) and delete
%WINDIR%\System32\mscoree.dll. You may need to work around Windows File
Protection to get this done.
There is a small chance an application will not immediately refuse to run
but only somewhere during its execution when it spins up the CLR, using
dynamic loading even for the initial call. They're a minority and there's no
reasonable way of detecting these. Using the above methods, they will fail
as soon as they try to use the CLR.
If you want to know before you even install the application, ask the vendor.
Anyone who's really interested in your money will answer a reasonable question.