Wednesday, December 9, 2009

How to determine the add-in's public key token

To register an add-in, you include it in the Client Add-in table in Microsoft Dynamics NAV. To include an add-in in the table, you must provide the Public Key Token.

1. At a command prompt, change to the directory that contains the sn.exe utility.

For example, the default directory for Microsoft Visual Studio 2008 is C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin. (or) the default directory for sn.ext file is C:\Program Files\Microsoft.NET\SDK\v2.0 64bit\Bin.

2.   Type the following command:

       sn.exe –T <assembly>

Replace <assembly> with the add-in assembly's path and file name, such as Program Files\Microsoft Dynamics NAV\60\RoleTailored Client\Add-ins\MyCompany.MyProduct.RtcAddins.dll

3. Press ENTER and not the public token key that is displayed.

NOTE: Please use semicolons before and after <assembly> value like the following: <assembly>

No comments:

Post a Comment