Symantec Developer Group

 View Only
  • 1.  Credential Manager assemblies in GAC

    Posted Apr 13, 2010 02:23 PM
    Hi,

    Today I installed the Crdential Management 7.0 SP1 using the Altiris SDK installer. The installation completed successfully and the binaries are present under %programfiles%\Altiris\CredentialManager folder. However these assemblies are not registered in the GAC and dont seem to be listed when we try to add a reference to the DLL using the VS Add Reference wizard. I then installed PPA SP4 using SIM and the installation completed successfully and there is a Credential Manager related assembly under %WINDIR%\Assembly folder. However even this DLL is not visible in the Add reference dialog box.

    Is there a known issue with the SDK installer  as a result of which automatic registration of these assemblies in the GAC is not taking place?

    How do I overcome this?

    Thanks
    -Prahalad


  • 2.  RE: Credential Manager assemblies in GAC
    Best Answer

    Posted Apr 20, 2010 11:09 AM

    Visual Studio does not add every assembly in the GAC to the Add References dialog. This would be extremely time consuming. Here is a document that talks about how to get assemblies to show up in the dialog.

    http://msdn.microsoft.com/en-us/library/wkze6zky(VS.80).aspx

    There are a large number of assemblies in the NS core, so adding them all to the Add Reference dialog would slow down every time a developer opens this dialog. It already takes some time, so it's best if each developer does this only if they want.



  • 3.  RE: Credential Manager assemblies in GAC

    Posted Apr 22, 2010 12:22 PM
    We add the following registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\Altiris SDK.  The AssemblyFolders key is read by Visual Studio when presenting the user with possible references.  In our key, we provide the path to which SDK .NET assemblies are installed to.  Typically this is C:\Program Files\Altiris\Altiris SDK\Assemblies\.  So, any assemblies that are in this folder or nested subfolder should be loaded by Visual Studio.

    I have installed Credential Manager Tp4 and I do see that for some reason Visual Studio does not list these assemblies as it should.  It seems like a Visual Studio issue, but we will need to investigate.

    I am afraid the only alternative right now is to browse for the assembly in \Altiris\Altiris SDK\Assemblies, which is not ideal when sharing the solution or for build machines which may not have the same path.