Bad IL Format Errors

I keep getting the below errors (and more) when trying to publish my project. I am using Windows compatibility with the UiPath.omnipage.activities. What causes this issue?

Bad IL format. The format of the file ‘C:\Users\phillip.williams.nuget\packages\UiPath.omnipage.bundle\1.3.1\lib/net6.0-windows7.0/AppHelper.dll’ is invalid.
Bad IL format. The format of the file ‘C:\Users\phillip.williams.nuget\packages\UiPath.omnipage.bundle\1.3.1\lib/net6.0-windows7.0/AppProductConfig.dll’ is invalid.

Hi @PWilliams

Can you check if the below thread gives you a hint:

How can I fix “Bad IL format” Error when Publishing after UiPath.Form.Activities Install? - Help / Activities - UiPath Community Forum

Also share what dependencies are you using, did you upgrade recently?

Thanks.

hi @PWilliams
Did you have the luck to identify the issue and correct it?
I face the same after project convertion to Windows from Legacy.

Even after upgrading the omnipage dependency + uiautomation activities…

Looking fwd for your reply :slight_smile: