Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dlls not deployed to GAC - SharePoint 2013, Visual Studio 2012, .Net FW 4.5

When I create a simple SharePoint 2013 project in Visual Studio 2012 and I want to deploy it, it deploys fine, but Dll is not in the Global Assembly Cache. In Advanced tab, I have added project assembly to be deployed.

enter image description here

In different test I set Assembly Deployment Target option to GlobalAssemblyCache, and Include Assembly In Package to True, and removed dll from package described in first scenario.

enter image description here

Project .NET FW version is 4.5. Machine is virtual machine 64bit, Windows Server 2008. I have tried also to change project's platform target to X64 and Any CPU without no luck.

I have tried to add dll manually using gacutil tool, and it is not deployed as well. Could it be something related to 4.5 framework? I can't also deploy manually any Dlls made in 4.5 but all other work.

Any ideas? Thanks.

like image 279
gradosevic Avatar asked Oct 22 '12 09:10

gradosevic


1 Answers

I'm checking it in c:\windows\assembly, it should be there, right?

No, that's the directory for the GAC in .NET versions 1.0 through 3.5. It was moved in .NET 4.0 and up, now located in c:\windows\microsoft.net\assembly. You can browse that directory with Explorer, the shell extension handler that flattened the view of the GAC directories is no longer used. If the assembly doesn't contain any unmanaged code then start in the GAC_MSIL directory, you'll have few problems locating the actual file from there.

like image 74
Hans Passant Avatar answered Oct 30 '22 11:10

Hans Passant