web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Dynamics CRM 2011 SDK assembly is .NET 4 assembly using CLR V4 GAC location %windir%\Microsoft.NET\assembly\GAC_MSIL\

Zhongchen Zhou Profile Picture Zhongchen Zhou 681

Dynamics CRM 2011 SDK assembly is .NET 4 assembly using CLR V4.

CLR v2.0 applications now cannot see CLR v4.0 assemblies in the GAC.

Gacutil.exe can be used to install .NET 4 assembly into GAC.

Gacutil.exe (Global Assembly Cache Tool)

The physical location is
%windir%\Microsoft.NET\assembly\GAC_MSIL\

.NET 2 & .NET 3.5 assembly using CLR V2 and the GAC location is
%windir%\assembly\

1. Check assembly CLR version use IL Disassembler

Start -> All Programs -> Microsoft Visual Studio 2010 -> Microsoft Windows SDK Tools -> IL Disassembler -> File -> Open -> Double Click “MANIFEST”

2. Check assembly CLR version use C# code

string assemblyPath = @"D:\sdk 5.0.10\bin\microsoft.xrm.sdk.dll";
string clrVersion = System.Reflection.Assembly.ReflectionOnlyLoadFrom(assemblyPath).ImageRuntimeVersion;
Console.WriteLine(clrVersion);

3. View assembly in .NET 4 GAC using Gacutil.exe

gacutil -l >"D:\gac.txt"

4. View assembly in .NET 4 GAC using Windows Explorer

%windir%\Microsoft.NET\assembly\GAC_MSIL\


This was originally posted here.

Comments

*This post is locked for comments