From: Arne Vajhøj on
On 03-05-2010 07:02, SQACSharp wrote:
> At runtime,
>
> I'm Looping on all running processes on my machine to get all
> *managed* process. (*ANY* process using mscorlib.dll)
>
> Once I get the list of managed applications running on pc
>
> I need to determine the precise net framework version used by theses
> applications.

Processes are not really using "a framework version". They are running
under a specific CLR version and using certain assemblies.

Do you define a framework 3.0 app as an app that:
- runs in 2.0 CLR
- does require one or more assemblies that started shipping with 3.0
- does not require any assemblies that started shipping with 3.5
?

Arne
From: SQACSharp on
>If you know which versions are on the system and you know
>what versions a given app require, then what are you missing?
That's what I need identify the version of an individual application.
(not my application, any possible .net application)

> Do you define a framework 3.0 app as an app that:
> - runs in 2.0 CLR
> - does require one or more assemblies that started shipping with 3.0
> - does not require any assemblies that started shipping with 3.5
Run 2.0 clr, I can guess the version by looking at reffered
assemblies but nothing prevent a net 3.5 application to not using >2.0
framework stuff so there is no "good" way to identify that version.
From: Arne Vajhøj on
On 06-05-2010 07:35, SQACSharp wrote:
>> If you know which versions are on the system and you know
>> what versions a given app require, then what are you missing?
> That's what I need identify the version of an individual application.
> (not my application, any possible .net application)
>
>> Do you define a framework 3.0 app as an app that:
>> - runs in 2.0 CLR
>> - does require one or more assemblies that started shipping with 3.0
>> - does not require any assemblies that started shipping with 3.5
> Run 2.0 clr, I can guess the version by looking at reffered
> assemblies but nothing prevent a net 3.5 application to not using>2.0
> framework stuff so there is no "good" way to identify that version.

What makes an app a 3.5 app if if is not using any 3.0 and 3.5
assemblies?

Arne