Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are .NET 4.5 assemblies located? [duplicate]

I've installed Windows 8, Visual Studio 2012 but don't have a v4.5 directory in %WINDIR%\Microsoft.NET\Framework.

Have I done something wrong, or is .NET 4.5 different from others?

If it's because I have not installed the tools, is there a set of different tools to download? As far as I can tell, I am able to build .NET 4.5 apps OK.

like image 357
Nick Randell Avatar asked Aug 22 '12 09:08

Nick Randell


People also ask

Where are .NET assemblies stored?

An assembly can be found mostly in either of the following places: GAC - C:\Windows\Assembly\GAC (Microsoft provided and by third-party in some cases) Installation folder (most of the third-party controls)

Where is .NET 4.5 installed?

The 64-bit registry is available in the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ subkey. For example, the registry subkey for . NET Framework 4.5 is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Full. Check the Release REG_DWORD value to determine the installed version.

Where are GAC files located?

Where is GAC (Global Assembly Cache) located? GAC is located in %windir%\assembly (for example, C:\WINDOWS\assembly) and it is a shared repository of libraries.


2 Answers

.NET 4.5 is an in place replacement for 4.0 - you will find the assemblies in the 4.0 directory.

See the blogs by Rick Strahl and Scott Hanselman on this topic.

You can also find the specific versions in:

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
like image 123
Oded Avatar answered Sep 20 '22 08:09

Oded


EDIT: This answer was correct until mid-2013, but you may have a more recent version since the big msbuild change. See the answer from Jonny Leeds for more details.

The version under C:\Windows\Microsoft.NET\Framework\v4.0.30319 actually is .NET 4.5. It's a little odd, but certainly mscorlib there contains AsyncTaskMethodBuilder etc which are used for async.

.NET 4.5 effectively overwrites .NET 4.

like image 38
Jon Skeet Avatar answered Sep 21 '22 08:09

Jon Skeet