找不到类型/名称空间MvcHtmlString [英] Type/NameSpace MvcHtmlString not found

查看:135
本文介绍了找不到类型/名称空间MvcHtmlString的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Facebook SDK,但无济于事.我的环境是VS 2008 3.5框架(仅限于此环境).只是为了导入他们的解决方案,我必须更改.sln文件以使其认为它是2008版.构建解决方案后,我得到了丢失的参考消息("System.Web.Mvc").我添加了参考并再次构建了解决方案.现在,它告诉我找不到类型/名称空间MvcHtmlString".这应该是"System.Web.Mvc"的一部分.

是否有在VS 2008和3.5框架中使用过此工具或Facebook SDK的经验?

I''m trying to use the Facebook SDK to no avail. My environment is VS 2008 3.5 framework (limited to this environment). Just to import their solution I had to change the .sln file to make it believe it was version 2008. After building the solution I got an missing reference message (''System.Web.Mvc''). I added the reference and built the solution again. Now its telling me that the ''Type/NameSpace MvcHtmlString could not found''. This should be part of ''System.Web.Mvc''.

Anyone with experience with this or the Facebook SDK in VS 2008 and 3.5 framework? How do I install the SDK?

推荐答案

您需要安装MVC工具包(默认情况下未安装,也不是Facebook SDK的一部分):
http://go.microsoft.com/fwlink/?LinkID=106001&clcid=0x409 [^ ]

祝你好运!
You need to install the MVC Toolkit (this isn''t installed by default and is not part of the Facebook SDK):
http://go.microsoft.com/fwlink/?LinkID=106001&clcid=0x409[^]

Good luck!


我发现我不需要MvcHtmlString类来做我需要做的事情.我写了自己的HTML to String函数.

不幸的是,非常感谢您的建议,MVC Toolkit不包含MvcHtmlString类.根据MSDN,MvcHtmlString已过时.不确定为什么要在Facebook SDK中使用它.
I found I didn''t need the MvcHtmlString Class for what I need to do. I wrote my own Html to String function.

Unfortunately, the MVC Toolkit which is great by the way, thanks for the suggestion, does not contain the MvcHtmlString class. According to MSDN MvcHtmlString is obsolete. Not sure why its used in the Facebook SDK.


这篇关于找不到类型/名称空间MvcHtmlString的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆