PHPBuilder - Using .NET Assembly (Interoperability with COM) Page 3



RSS Twitter
Articles Php Functions

Using .NET Assembly (Interoperability with COM) - Page 3

by: Jayesh Jain
|
November 5, 2002

Creating Strong Name Key file

Strong name is the full class name with namespace, version, public key and digital signature. All the assembly installed on the system has to be uniquely identified and versioned, also to make sure the assembly is not tampered it needs to be signed with a common key ( public key) to decrypt.
The Strong Name command-line tool (sn.exe) can be used to generate a new public-private key pair and to write that pair to a file which could be then used to create the assembly.
sn -k mykey.snk 
This utility could be found in the .NET Framework's Bin folder C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin (on my computer)
[Note] Alternatively, you could run a .NET Command Window by selecting Start -> Programs -> Microsoft Visual Studio .NET -> Visual Studio .NET Tools >- Visual Studio .NET Command Prompt, which sets all of the required paths for you. [End Note]
Here is the sample output you should be expecting.
sample output window
Copy this file mykey.snk to your project folder c:\tgol\phpclass (on my computer).

« Previous Page
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
Next Page »

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Jayesh Jain

Comment:



Comment:

(Maximum characters: 1200). You have characters left.