Different Assemblies Referenced to the Same Namespace

Hello UiPath Developer Team,

today I tried to use the following C# code sequence in an Invoke Code Activity:

System.Runtime.InteropServices.Architecture.X64

I got the error CS0433:

image

I use Studio 21.10.2. It seems that there is a conflict between Windows Legacy and Windows libraries in Windows compatibility mode.

Thanks for your support.

Best regards
Stefan

I was able to replicate the behavior. Not sure if e can fix this in the near future.

What is your usecase? What do you try to accomplish?

@alexandru

Hello Alexandru,

thank you very much for your reply.

Let me explain: I am currently investigating the possibilities of using multi target packages with UiPath. With the compatibility modes of Windows Legacy, Windows and Cross-platform offers you the basis for that. My goal is to provide an activity that can be work with all target platforms.

So, this is like a part of a puzzle. You can find more pieces here:

In this case I want to differentiate, with a built-in code sequence, which environment I am in. x64 or x86, Windows, Linux or Mac. This with a view to the future. For me as a developer according to the motto: Compile once, use many.

Thanks for your support.
Best regards
Stefan

1 Like

have you solved your problem mate?

Hello @noob_dev,
unfortunately not.
Best regards
Stefan

1 Like

so which way did you solve your project, is there any shortcut?

Hello @noob_dev,
no shortcut, I developed multiple versions.
Best regards
Stefan

1 Like