Issue

Occasionally when deploying a process, the build will fail with numerous errors. These errors may relate to missing namespaces or missing definitions for rules or extender projects, as shown below:

Error 1      The name 'SucceedingRuleHelper' does not exist
in the current context     c:\Documents and
Settings\test\My Documents\Visual Studio 2005\Projects\K2Test\K2Test\ExtenderProjects\CSWinWF-ee8ec9b959484649b799a8048163894c\EventSucceedingRule_661f601ddafa4d46a88505ecefe0e803.xoml.cs
47     26
      
Error 2      The name 'SucceedingRuleHelper' does not exist
in the current context     c:\Documents and
Settings\test\My Documents\Visual Studio 2005\Projects\K2Test\K2Test\ExtenderProjects\CSWinWF-ee8ec9b959484649b799a8048163894c\SucceedingRule_330e3a4b7f4a4c368b72b7385f69db40.xoml.cs
47     26
      
Error 3
'ExtenderProject_ee8ec9b959484649b799a8048163894c.DestinationRule_bba9c79450d44294a7c17b581cde11bb'
does not contain a definition for
'DestinationRule_ExecuteCode'     c:\Documents and
Settings\test\My Documents\Visual Studio 2005\Projects\K2Test\K2Test\ExtenderProjects\CSWinWF-ee8ec9b959484649b799a8048163894c\DestinationRule_bba9c79450d44294a7c17b581cde11bb.xoml
3      78
      
Error 4
'ExtenderProject_ee8ec9b959484649b799a8048163894c.DestinationRule_bc5fcb6ee3784e55a5e65e82f70e0597'
does not contain a definition for
'DestinationRule_ExecuteCode'     c:\Documents and
Settings\test\My Documents\Visual Studio 2005\Projects\K2Test\K2Test\ExtenderProjects\CSWinWF-ee8ec9b959484649b799a8048163894c\DestinationRule_bc5fcb6ee3784e55a5e65e82f70e0597.xoml

Workaround
The missing projects can be excluded from the build, as they are not required in the process. Follow the steps below to exclude the projects that are causing the build errors:
 
1.       Save all your files, and close the K2 Designer for Visual Studio
 
2.       Make a backup of the K2 Project folder that you are trying to deploy
 
3.       Open the project in Visual Studio, and open the Solution Explorer window
 
4.       In the Solution Explorer, click on the process name
         
 
5.       Click on the Show Extender Projects button
         
 
          Note: You should now see a plus sign by the .kprx file:
         
 
6.       Click on the plus sign next to the .kprx file
 
7.       Click on the plus sign next to the CSWinWF extender project
 
8.       Find the .xoml file from the build error list in the extender projects

          Note: The error project, as shown below:
           
          Appears in the Solution Explorer as:
         
          Be sure to match the error GUID exactly.
 
9.       Right-click the file and select Exclude From Project
 
10.    Try to deploy the process again
 
11.    Repeat steps 8 to 10 for any other build errors