Add your GAC to the .net fx tab component

Created at : Feb/16/2007  
1173 Views   0 Comments

Bagaimana caranya menampilkan component .net yang sudah kita buat agar bisa ditampilkan di .net tab component ketika kita akan melakukan add reference ke component tsb? Berikut caranya :

1. Buat private/public key pair lewat sdk command prompt :
sn -k MyKeyPair.snk
copy kan file snk tsb ke direktori aplikasi.

2. Buka AssemblyInfo filenya.
Tambahkan attribute <Assembly: AssemblyKeyFile("MyKeyPair.snk")>
bila perlu rubah assembly versionnya dan attribute assembly lainnya.

3. Build your assembly
4. Install the assembly to the GAC trough the sdk command prompt :
gacutil -i YourDll.dll

5. Buka regedit, locate to key :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders
buat key baru sesuaikan dengan nama assembly nya. Kemudian rubah nilai string value defaultnya ke lokasi assembly yang kita simpan. Nilai lokasi assembly tersebut nantinya tidak berpengaruh kalau kita hapus atau memindahkan assembly ke lokasi yang lain.


[Comments]

[Write your comment]
Name (required)
URL (optional)
Example : http://www.yulianmf.com  
Comment

ghir
Input code above below (Case Sensitif) :
About Me 
Rully Yulian MF
My Name is Rully Yulian Muhammad Firmansyah. I am an IT Trainer, IT Consultant and Application Developer spesializing in Microsoft .NET technology and SQL Server database. I live in Bandung, Indonesia. My hobby is to play Guitar. [Read More...]
Top Download 
Bagaimana caranya menginstal database ketika deploying sebuah aplikasi? : Downloaded 2231 times  
Change Group,Sort Order, Filtering By Date in Crystal Reports : Downloaded 2192 times  
Simple Voice Engine Application With Sound Player Class... : Downloaded 1522 times  
DataGridView Grouping : Downloaded 1243 times  
WinForms DataGrid Paging With SqlDataAdapter : Downloaded 1232 times  
Article Category 
Links 
Award 
Certifications 
MOS 2007
MCAS
MCT
MCPD
MCTS
MCAD.NET
ASP.NET Brainbench
Native Enterprise - IT Training 
Native Enterprise Facebook Group 
My Facebook 
My LinkedIn 
Syndication (RSS 2.0) 
Powered By 
Native Enterprise News