单元测试& System.Web.Routing

时间:2011-06-07 12:05:54

标签: visual-studio unit-testing asp.net-routing

我有一个测试项目,我正在尝试引用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'.

我确信这有合理的理由,但我不知道那是什么。

2 个答案:

答案 0 :(得分:4)

您还需要添加此参考

You need to add this reference too

答案 1 :(得分:2)

需要对System.Web的引用。以为我已经引用了......哎呀!