Introduction

K2 requires Microsoft MSBuild Tools installed on the K2 Server for K2 Package and Deployment to function correctly.

Prior to .NET Framework 4.0, MSBuild was bundled as part of the Framework installation. Starting with .NET 4.0 it is bundled with Visual Studio (2010 and greater). For K2, if any K2 supported version of Visual Studio is present on the K2 Server machine, these tools are available.

Error Details

Deploying a workflow with K2 Package and Deployment in K2 4.6.11 without the MSBuild Tools installed results in errors similar to the following:

The following errors occurred while compiling the process (with framework version 3.5): Build started 7/28/2015 12:35:33 AM. Project "C:\Users\sys-k2-pservices\AppData\Local\Temp\ExtenderProjects\CSWinWF-96036a8e47f744b0a039d81a0ecbe2fe\CSWinWF-96036a8e47f744b0a039d81a0ecbe2fe.csproj" on node 0 (Rebuild target(s)). Deleting file "C:\Users\sys-k2-pservices\AppData\Local\Temp\ExtenderProjects\CSWinWF-96036a8e47f744b0a039d81a0ecbe2fe\obj\Debug\CSWinWF-96036a8e47f744b0a039d81a0ecbe2fe.csprojResolveAssemblyReference.cache". EntityClean: Successfully cleaned the output for 0 EDMX files. EntityDeploy: Processing 0 EDMX files. Finished processing 0 EDMX files. C:\Windows\Microsoft.NET\Framework64\v3.5\Workflow.Targets(127,5): error : 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
0b2a5812d7c145d8982a1b9ba857f191.ExtenderConfig' does not contain a definition for 'SmartObjectServerConnectionString' and no extension method 'SmartObjectServerConnectionString' accepting a first argument of type 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
0b2a5812d7c145d8982a1b9ba857f191.ExtenderConfig' could be found (are you missing a using directive or an assembly reference?) C:\Windows\Microsoft.NET\Framework64\v3.5\Workflow.Targets(127,5): error : 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
3b673261c0a6494f9713540e3b83e3b4.ExtenderConfig' does not contain a definition for 'SmartObjectServerConnectionString' and no extension method 'SmartObjectServerConnectionString' accepting a first argument of type 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
3b673261c0a6494f9713540e3b83e3b4.ExtenderConfig' could be found (are you missing a using directive or an assembly reference?) C:\Windows\Microsoft.NET\Framework64\v3.5\Workflow.Targets(127,5): error : 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
e335ef0919eb43fdb2a2badaff6e9071.ExtenderConfig' does not contain a definition for 'SmartObjectServerConnectionString' and no extension method 'SmartObjectServerConnectionString' accepting a first argument of type 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
e335ef0919eb43fdb2a2badaff6e9071.ExtenderConfig' could be found (are you missing a using directive or an assembly reference?) Workflow markup validations completed with 3 errors and 0 warnings. Done Building Project "C:\Users\sys-k2-pservices\AppData\Local\Temp\ExtenderProjects\CSWinWF-96036a8e47f744b0a039d81a0ecbe2fe\CSWinWF-96036a8e47f744b0a039d81a0ecbe2fe.csproj" (Rebuild target(s)) -- FAILED. Build FAILED. "C:\Users\sys-k2-pservices\AppData\Local\Temp\ExtenderProjects\CSWinWF-96036a8e47f744b0a039d81a0ecbe2fe\CSWinWF-96036a8e47f744b0a039d81a0ecbe2fe.csproj" (Rebuild target) (1) -> (WorkflowCompilation target) -> C:\Windows\Microsoft.NET\Framework64\v3.5\Workflow.Targets(127,5): error : 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
0b2a5812d7c145d8982a1b9ba857f191.ExtenderConfig' does not contain a definition for 'SmartObjectServerConnectionString' and no extension method 'SmartObjectServerConnectionString' accepting a first argument of type 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
0b2a5812d7c145d8982a1b9ba857f191.ExtenderConfig' could be found (are you missing a using directive or an assembly reference?) C:\Windows\Microsoft.NET\Framework64\v3.5\Workflow.Targets(127,5): error : 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
3b673261c0a6494f9713540e3b83e3b4.ExtenderConfig' does not contain a definition for 'SmartObjectServerConnectionString' and no extension method 'SmartObjectServerConnectionString' accepting a first argument of type 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
3b673261c0a6494f9713540e3b83e3b4.ExtenderConfig' could be found (are you missing a using directive or an assembly reference?) C:\Windows\Microsoft.NET\Framework64\v3.5\Workflow.Targets(127,5): error : 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
e335ef0919eb43fdb2a2badaff6e9071.ExtenderConfig' does not contain a definition for 'SmartObjectServerConnectionString' and no extension method 'SmartObjectServerConnectionString' accepting a first argument of type 'Project_96036a8e47f744b0a039d81a0ecbe2fe.EventItemContext_
e335ef0919eb43fdb2a2badaff6e9071.ExtenderConfig' could be found (are you missing a using directive or an assembly reference?) 0 Warning(s) 3 Error(s)