Assembly reference issue

This code will run in Visual Studio or Visual Studio Code where you can set any version of the framework.
Then UiPath can run the exe file built from that code.
Stupid solution but works…