Assemblies can be installed to the GAC with or without reference. $publish.GacInstall( “c:\Dll\Sample. Installs assemblies into the Global Assembly Cache (GAC) by using the gacutil SDK tool. ::Load( “System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” ) Run the SharePoint PowerShell console as Administrator. Here is the way to register DLL to GAC using PowerShell. In Windows Server 2012 unfortunately drag and drop feature is gone and with out installing visual studio, you won’t get GacUtil.exe. Prior to Windows Server 2012 I had been used to install DLL files in the Windows Global Assembly Cache (GAC) by either opening the Windows/Assembly folder and simply dragging and dropping the file, or by using GacUtil.exe
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |