加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

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

发布时间:2020-12-16 07:09:00 所属栏目:asp.Net 来源:网络整理
导读:我有一个Web应用程序,其构建目标为.Net Framework 4.0. 我想与Sharepoint对象模型API进行交互,但它给出了框架4.0运行时不支持Sharepoint.dll错误. 是他们的任何调整,我可以使用Sharepoint 2010与.Net Framework4.0. 注意:我无法将Web应用程序的构建目标更改
我有一个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?)中添加谁知道…

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读