Solving DLL issues after upgrading to K2BTools 10

Introduction

In K2BTools 10 version, some DLLs that were placed in previous versions under Patterns\<PatternName> folders are no longer needed.

If you install K2BTools using the setup the uninstall program will remove this DLLs from patterns folder. However there are some scenarios (ex: K2BTools installed without using the setup) when these DLLs are not automatically removed and developer must remove them manually. In these cases when applying a pattern instance an error like the one shown below will be shown in the output:

error: failed.
C:\ModelsEvo3\XXX> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Artech.Template.Parser.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Artech.Template.Base.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Artech.Template.Helper.dll" /R:"System.dll" /R:"System.Data.dll" /R:"System.Drawing.dll" /R:"System.Design.dll" /R:"System.Windows.Forms.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Packages\Patterns\K2BEntityServices\Artech.Patterns.K2BEntityServices.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Packages\Patterns\K2BEntityServices\Artech.Patterns.K2B.Common.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Packages\Patterns\K2BEntityServices\Artech.K2B.Common.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Artech.Common.Properties.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Artech.Architecture.Common.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Artech.Udm.Framework.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Artech.Genexus.Common.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Packages\Artech.Packages.Patterns.dll" /R:"System.Xml.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Artech.Common.dll" /R:"C:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Artech.Common.Helpers.dll" /out:"C:\Users\admin\AppData\Local\Temp\GXTemplates\hyov2n1w.dll" /debug- /optimize+ /w:1  "C:\Users\admin\AppData\Local\Temp\nftynwli.0.cs"
 
 
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.8670
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
 
c:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Packages\Patterns\K2BEntityServices\Templates\ExportProcedure.dkt(24,1): error CS0246: The type or namespace name 'PerformanceHelper' could not be found (are you missing a using directive or an assembly reference?)
c:\Program Files (x86)\Artech\GeneXus\GeneXusXEv3\Packages\Patterns\K2BEntityServices\Templates\ExportProcedure.dkt(24,43): error CS0246: The type or namespace name 'PerformanceHelper' could not be found (are you missing a using directive or an assembly reference?)

Solution: Manually remove of dlls

To solve this some DDLs must be deleted.

Go to GXVersion\Packages\Patterns folder and:

  • In K2BEntitySerices folder:
    • The only DLL in this folder must be Artech.Patterns.K2BEntityServices.dll. Remove remaining DLLs.
  • In K2BPrompt folder
    • The only DLL in this folder must be Artech.Patterns.K2BPrompt.dll. Remove remaining DLLs.
  • In K2BTrnForm folder
    • The only DLL in this folder must be Artech.Patterns.K2BTrnForm.dll. Remove remaining DLLs.