.Net 4和SharePoint Foundation 2010

 尽管已经在各种论坛上被问了一百遍了。这里是来自Michael Foertsch(secretsofsharepoint.com/cs)的最终结论。

SharePoint Foundation 2010对象模型无法通过.NET Framework 4(或者更高版本)访问。在.NET 3.5 以外的版本中调用对象模型中的任何对象都将抛出如下异常:

System.PlatformNotSupportedException

Microsoft.SharePoint is not supported with version 4.0.30319.1 of the Microsoft .Net Runtime.

当然,无论何时你都可以在你的.NET 4应用程序中通过Web服务的方式访问SharePoint中的对象, 但是这种方式只能受限访问整个对象模型中部分功能。

参考资料

.Net with SharePoint Foundation 2010 

posted @ 2010-08-26 11:43  Sunmoonfire  阅读(137)  评论(0编辑  收藏  举报