单元测试与系统.Web.路由
我有一个测试项目,正在尝试引用 System.Web.Routing。我已经添加了对该项目的引用,但出现错误:
The type 'System.Web.Routing.RouteValueDictionary' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
我确信这有一个逻辑原因,但我不知道那是什么。
I have a test project and am trying to reference System.Web.Routing. I've added the reference to the project but I am getting the error:
The type 'System.Web.Routing.RouteValueDictionary' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
I'm sure there is a logical reason for this but I do not know what that is.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您也需要添加此引用
You need to add this reference too
需要对 System.Web 的引用。我以为我已经引用了......哎呀!
Needed a reference to System.Web. Thought I had that already referenced...oops!