Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check programmatically if .NET 4.7 Target Pack is installed?

Whe have found a way to check, if MsBuild.exe is installed, but we also need to know if the targeting pack for .NET 4.7 ist already installed or not. Visual Studio is not installed, only the Framework 4.7 and maybe the targeting pack ...

Does anyone know how to check it?

like image 771
Eugen Hübner Avatar asked Dec 17 '22 23:12

Eugen Hübner


1 Answers

It seems that you can see in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\ which targeting packs are installed. For each pack there will be a folder with its version number, for example

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\4.7

more information here

like image 91
Eugen Hübner Avatar answered Feb 15 '23 23:02

Eugen Hübner