开发者

WF 4 and SP 2010 Object Model

I have 2 projects in my solution.

  1. SAMII.Workflow --- .Net 4.0 (Any CPU)
  2. SAMII.Core --- .Net 3.5 (Any CPU)

SAMII.Workflow hosts sequential workflow (WF4) in a Console application.

It also references SAMII.Core which holds the business logic (SharePoint OM via SPMetal).

So when I try to run the solution, I get the following exception:

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

How can I resolve the issue? I cannot downgrade WorkF开发者_如何转开发low framework to 3.5.


You cannot call SharePoint OM using .net 4.0 But you can call SharePoint WebServices using .net 4.0. So instead using OM, you can use SharePoint Services (REST or WebService).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜