Hello, I just updated to 18.2.0 this morning and suddenly cannot run Invoke Code even just showing a message box. Opened the previous working workflows with Invoke Code too and it threw the same error:
XXX has thrown an exception
Source: Invoke code
Message: Error compiling code
error BC2000: 予期しないコンパイラ初期化エラーが発生しました: プロジェクトには既にアセンブリ NLog への参照が指定されています。'C:\Users\MyRobo\AppData\Local\UiPath\app-18.2.0-beta0011\NLog.dll' への 2 番目の参照を追加することはできません。 At line -27
Exception Type: ArgumentException
System.ArgumentException: Error compiling code
error BC2000: 予期しないコンパイラ初期化エラーが発生しました: プロジェクトには既にアセンブリ NLog への参照が指定されています。'C:\Users\MyRobo\AppData\Local\UiPath\app-18.2.0-beta0011\NLog.dll' への 2 番目の参照を追加することはできません。 At line -27
at UiPath.Core.Activities.Workflow.CompilerRunner.Compile(String code, Int32 errLineOffset, Boolean generateInMemory)
at UiPath.Core.Activities.Workflow.CompilerRunner..ctor(String code, String className, String methodName, Int32 errLineOffset, Boolean generateInMemory)
at UiPath.Core.Activities.InvokeCode.GetCompilerRunner(String userCode, List`1 args, String imps)
at UiPath.Core.Activities.InvokeCode.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
It seems like the NLog assembly is already defined in the project, and we cannot add the second declaration on ‘C:\Users\MyRobo\AppData\Local\UiPath\app-18.2.0-beta0011\NLog.dll’ at line -27.
I checked the app-18.2.0-beta0011\NLog.dll and cannot seem to open it by text editor. Is there something I am missing in upgrading to 18.2.0?