❶ snk文件怎么使用
SNK,作为程序后缀的时候,是<dot>net中的强密匙加密文件
❷ .net 涓鐨 sn.exe 宸ュ叿鎬庝箞浣跨敤鐨勶紵
VS2005 鍏閽 绉侀挜SN.EXE浣跨敤VS2005 strong name 鐨勫師鐞: 鍏堝埄鐢⊿N.exe杩欎釜宸ュ叿鐢熸垚涓涓姣斿係ampleKey.snk鐨勬枃浠,杩欎釜鏂囦欢鐨勮嫳鏂囧師濡傚眬鍏嗘枃鍙玸tring name key file,鐒跺悗鐢ㄥ姞瀵嗙殑绠楁硶鏍规嵁SampleKey.snk鐢熸垚涓涓猄ampleKeyPublic.snk.鏈鍚庡湪鏍规嵁SampleKeyPublic.snk鎻愬彇涓涓猵ublic key token ,public key token鏄涓涓16浣嶇殑鏁板瓧鍜屽瓧姣嶆贩鍚堢殑鏁(鎴戜笉鏁㈢‘瀹氭槸涓嶆槸鍗佸叚杩涘埗鏁):澶ц嚧娴佺▼濡備笅: SampleKey.snk –鏍规嵁涓瀹氱殑绠楁硶–> SampleKeyPublic.snk—->public key token 鎵浠ユ垜浠鍙瑕丼ampleKey.snk鍜宲ublic key token灏卞彲浠ヤ簡,SampleKeyPublic.snk灏辨病浠涔堢敤浜.鍥犱负SampleKeyPublic.snk鐨勮础鐚鍋氬畬浜,鎵浠ユ垜浠涓嶈佷负"涓轰粈涔堝湪vs2003涓嶇敤鍚奡ampleKeyPublic.snk"鑰屼笉鐖. 瀹為檯鎿嶄綔濡備笅: 1.鎵撳紑SDK Command Prompt鎴栬匳S2005涓鐨刅isual Studio 2005 Command Prompt.鑰屼笉鏄痺indows鐨刢md 2.杈撳叆sn -k SampleKey.snk,寰楀埌鐨勬枃浠跺湪鍛戒护鎻愮ず绗︾殑褰撳墠鏂囦欢澶逛笅(寰鑵婄ゥ杞鍙鏂囦欢澶瑰緢灏戝彨鐩褰,鏈姝g偣鏄痜older) 3.杈撳叆sn -p SampleKey.snk SampleKeyPublic.snk 4.杈撳叆sn -t SampleKeyPublic.snk 寰楀埌public key token 鎵撳紑VS2005锛屾壘鍒伴」鐩锛岀劧鍚庡彸鍑"椤圭洰鍚"鎵惧埌"灞炴"锛"灞炴"閲岄潰鏈変釜"Signing"鐨勯夐」鍗★紝鐒跺悗閽╀笂"Sign the assembly"锛屽啀Choose a strong name key file.鍋氬畬浜嗘搷浣滐紝鐒跺悗璁板緱淇濆瓨锛岀紪璇杩欐牱浣犵殑DLL鎵嶈兘鎷栧埌GAC锛孏AC灏辨槸"鍏ㄥ眬绋嬪簭闆嗙紦瀛"锛岃繖灏辨槸涓轰粈涔堜綘鐨勪綘鐨勯」鐩鐨刡in鏂囦欢澶逛笅娌℃湁System.Data锛屼綘閮借兘寮曠敤鐨勫師鍥狅紝鍥犱负绋嬪簭浼氳嚜鍔ㄥ幓鎵綠AC,GAC鐨勪綅缃鍦╳in 2003涓鏄"c:\windows\assembly".濡傛灉浣犵殑assembly鍦℅AC涓锛岄偅涔堜綘鐨勪笢瑗夸篃鏄铔鍚婄殑銆SQl Server 2005 Sample bug 鏄鎸囧湪鈥淐:\娓g烶rogram Files\Microsoft SQL Sever\90\Samples\Integration Service\Programming Samples\Control Flow\SqlConnection Manager Sample\SqlConnMgrCS鈥濈殑Sample鏈夐棶棰璇峰弬鐓у備笅淇鏀:1.SqlConnMgrCS.cs鏂囦欢涓鐨13琛 搴旀敼鎴:SqlConnMgrCSUI.SqlConnMgrUICS,SqlConnMgrUICS2.鍦⊿qlConnMgrCSUI椤圭洰涓鐨凷qlConnMgrUIFromCS.cs涓鐨勬寜閽鍦⊿QL Server鐨凷SIS Designer涓鏍规湰鐐逛笉鍔 鎵浠ユ垜浠蹇呴』鍒癡S2005涓甯瀹冭Е鍙戜簨浠讹紝鐒跺悗Copy瀹冪殑浠g爜鍒扮浉搴旂殑浜嬩欢澶勭悊绋嬪簭涓銆
❸ petshop鐨剆nk鏂囦欢鏄鐢ㄦ潵鍋氫粈涔堢殑鍟婏紵
鍒涘缓瀵嗛挜瀵 瑕佷娇鐢ㄥ己鍚嶇О涓虹▼搴忛泦绛惧悕锛屽繀椤诲叿鏈夊叕閽/绉侀挜瀵广傝繖涓瀵瑰姞瀵嗗叕閽ュ拰鍔犲瘑绉侀挜鐢ㄤ簬鍦ㄧ紪璇戣繃绋嬩腑鍒涘缓寮哄悕绉扮▼搴忛泦銆傛偍鍙浠ヤ娇鐢ㄥ己鍚嶇О宸ュ叿 (Sn.exe) 鏉ュ垱寤哄瘑閽ュ广傚瘑閽ュ规枃浠堕氬父鍏锋湁 .snk 鎵╁睍鍚嶃