error of compiling NHibernate from VS2003

来源:互联网 发布:55s8500d评测 知乎 编辑:程序博客网 时间:2024/06/05 18:16

when I compiled the NHibernate project that I download from forcesource.net, error occur.  The bug report is "读取密钥文件“../NHibernate.snk”时出错 -- 系统找不到指定的文件".

Two methed to  resolve this problem :

1. Find AssemblyInfo.cs file , delete the line --"[assembly: AssemblyKeyFileAttribute("..//NHibernate.snk")]"

2. In ..NET command line, run "sn -k NHbernate.snk " , you will get the file-- NHbernate.snk  , put the file to correct place, than re-compile the project , OK, successfull!

原创粉丝点击