This morning I tried the Invoke Code Activity of the preview release 2022.1 in the context of dotNET 6 (Windows compatibility mode). All works well so far, until the moment I change the code inside the Invoke Code Activity. I get the message:
After closing and reloading the project no error message pops up and all works well and as expected.
Thanks for your support.