The given type or method 'Approval.Startup' was not found. Try specifying the Assembly
Startup Class
在 AssemblyInfo.cs 中添加
你好,很久的项目,并没有AssemblyInfo.cs 这个类。
@Dony.k: 在 Properties 文件夹中添加这个类
@dudu: 加了,还是同样的错误。这个网站项目里面所有的Class不会生成为到一个dll中,我想是这个原因?这样有没有其他的解决方法呢?感谢您的回答。
@Dony.k: 是这个原因,试试将 Approval.Startup 的代码放到 Global.asax 中
@dudu: 我尝试将Configuration方法的代码和Startup放到Global.asax中不起作用。因为Configuration方法需要一个IAppBuilder参数,所以不能直接调用。不知道您还有其他的建议吗?谢谢!
@dudu: 我尝试新建一个Library,把Startup放到这个library中,然后在网站中引用这个library,但是不起作用。我换其他方式实施了,谢谢你。