开发者

VS 2010 Beta 2, cannot add reference to System.Web.Routing from class library

开发者 https://www.devze.com 2022-12-08 23:10 出处:网络
I have a class library project, targeting the .NET Framework 4.0. I want to have ASP.NET MVC specific extens开发者_高级运维ions here, that I can use in other projects by just adding a reference to th

I have a class library project, targeting the .NET Framework 4.0.

I want to have ASP.NET MVC specific extens开发者_高级运维ions here, that I can use in other projects by just adding a reference to the class library.

I have some Routing specific extension methods to accommodate localization in URLs, so I need to add a reference to the System.Web.Routing assembly.

In Visual Studio 2010 beta 2, doing so adds a reference to v4.0 of that assembly - which is empty. I've tried to copy the 3.5 one from the frameworks folder, but that doesn't make a difference.

Any ideas?


There's a workaround for this.

You just have to add reference to System.Web as well.

0

精彩评论

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

关注公众号