I see two assemblies in the following directories.
[PATH TO MY PROJECT]\.local\.codedworkflows\.dt\81a32ae4cc484569a6b8e7321b523465\GP_API_Monitor.Core.dll
[PATH TO MY PROJECT]\.local\.codedworkflows\.dt\b0951c85c2ad4245873d46c92c627968\GP_API_Monitor.Core.dll
It is important to note that the project is valid on version 2023.10.7
I am able to publish the project normally on version 2023.10.7 when trying to use the exact same commit that raises the error on Studio >= 2024.X
The issue is related to Coded Source files.
The only .cs file i have in my project (other than the ones studio generate in ./local and ./codedworkflows) is this:
Hi, Henri! What studio version are you using exactly? This has been fixed on our latest release, 24.10. If this is still happening after you upgrade, can you please share the project with us?
Upon trial and error, i’ve found that the problem occurs because of a For Each activity on a list of the enumerable type. Changing from List(Of MyEnum) to an array also didn’t work.
I’ve managed to create a Minimal, Reproducible Example which i’m attaching:
A sidenote: It seems Studio cannot find the new namespace in the editor’s import tab unless you create a variable of MyEnum first, thought i didn’t test further.
[Edit 1] Just for the sake of helping readers that need a workaround while we wait for a fix: you can simply iterate over Enumerable.Range(0, enumList.Length) in the For Each activity and then use enumList(currentNumber)
[Edit 2] I’ve also tested with using a user-defined class instead of enum and had the same problem.
[Edit 3] I was able to publish the project normally with Studio 2023.10.7