Reputation: 6362
How can I check if a program that is running on my PC is using .NET Framework 4.6.1?
I can see in the registry that it is installed, but how can I make sure that a specific program is using it?
Upvotes: 1
Views: 352
Reputation: 337
You can try to use Environment.Version()
(its worked for me on .NET 3.5) https://msdn.microsoft.com/en-us/library/system.environment.version(v=vs.110).aspx
Upvotes: 0
Reputation: 941525
There is no option to not use it, the 4.6.1 installer replaces any existing .NET 4.x install. Only other framework version the program could be using is an old one, before .NET 4.0. Do keep in mind that the framework version you target is not the same as the one you run with.
Otherwise easy to check with, say, SysInternals' Process Explorer or a debugger. Look at the loaded DLLs. A 4.x process always loads clr.dll
, older framework versions did not yet have that DLL, they'd use mscorwks.dll instead.
Upvotes: 3