微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

asp.net-mvc-2 – 使用.Net Framework 4.0的Sharepoint 2010 Foundation

我有一个Web应用程序,其构建目标为.Net Framework 4.0.
我想与Sharepoint对象模型API进行交互,但它给出了框架4.0运行时不支持Sharepoint.dll错误.

是他们的任何调整,我可以使用Sharepoint 2010与.Net Framework4.0.

注意:我无法将Web应用程序的构建目标更改为任何其他框架,因为我在我的应用程序中使用了.net 4.0的一些独有功能.

解决方法

对不起,你可能没有运气:

There appears to be some confusion
around whether or not ASP.NET 4 is
supported for both MOSS and SharePoint
2010 – in short,the answer is that it
is not currently supported in either
product.

Whilst it is possible to use ASP.NET
3.5 in MOSS by making some modifications to the SharePoint site
web.config (instructions for doing
that in MOSS here; SP2010 uses 3.5 by
default),this is unfortunately not
the case with version 4.

The reason? ASP.NET 4 uses a new
version of the Common Language Runtime
(CLR). Whilst .NET 2.0,3.0 and 3.5
all used version 2.0 of the CLR,.NET
4 uses version 4. I’m not entirely
sure what happened to version 3. There
is a decent post on stack overflow
with further details.

SharePoint 2010 and .NET 4: confused?

也许.NET 4.0支持将在未来的更新(SP1?)中添加谁知道…

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐