开发者

ASP.NET MVC System.Web.Routing.RouteCollection Ambiguous Reference?

开发者 https://www.devze.com 2023-02-15 20:03 出处:网络
I am 开发者_JAVA百科trying to write a unit test for testing routes; however, the project is failing to resolve the RouteCollection. When I reference the dll (from the system and also by browsing to my

I am 开发者_JAVA百科trying to write a unit test for testing routes; however, the project is failing to resolve the RouteCollection. When I reference the dll (from the system and also by browsing to my MVC project) and use the FQN (System.Web.Routing.RouteCollection), it complains of an ambiguous reference.

On a side note, when looking at the intellisense for System.Web.Routing, every item is duplicated!

Can you help?


After using reflector to decompile the dll, I came to the conclusion that the RouteCollection did not exist in that dll. Turns out that it exists in System.Web

0

精彩评论

暂无评论...
验证码 换一张
取 消