gpt4 book ai didi

asp.net-mvc-2 - 带有.Net Framework 4.0的Sharepoint 2010 Foundation

转载 作者:行者123 更新时间:2023-12-04 18:15:42 24 4
gpt4 key购买 nike

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

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

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

最佳答案

抱歉,您可能没有运气:

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?

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

关于asp.net-mvc-2 - 带有.Net Framework 4.0的Sharepoint 2010 Foundation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4042376/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com