CS1537 & CS0433 compilation errors causing publish failure

Hi Masters,

I have a large project (1900+ xamls, 108MiB in total size) structured like this:
project/
├── SubProcess1/
│ └── Full-blown REFramework for SubProcess1
├── SubProcess2/
│ └── Full-blown REFramework for SubProcess2
│ …
├── SubProcessN/
│ └── Full-blown REFramework for SubProcessN
└── Main.xaml (Entry point)

When I git clone the project from developer’s repository and make a publish, I frequently encounter compilation errors like:

  • (1656,7): error CS1537: The using alias ‘SetTransactionStatus_255d’ appeared previously in this namespace
  • (1,10864): error CS0433: The type ‘Main_Expressions’ exists in both ‘MyProjectName_Expressions_51545568, Version=1.0.2689.0, Culture=neutral, PublicKeyToken=null’ and ‘MyProjectName_Expressions_64294872, Version=1.0.2689.0, Culture=neutral, PublicKeyToken=null’

The alias and “xxx_expressions” don’t even exist in my project dependencies.
When the errors occur, I need to retry several times to finally get a successful publish. I tried on UiPath Studio 23.10.14 and 24.10.16 and they both have this issue. How can I fix this?