Compilation failed or was cancelled. warning CS1701

While publishing the project Studio gives an error: 24.10.8+Branch.support-v24.10.Sha.653ecc68c3ec77c9af349466b2c3925e0dfbe4a0.653ecc68c3ec77c9af349466b2c3925e0dfbe4a0

Compilation failed or was cancelled.

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • warning CS1701: Assuming assembly reference ‘System.Linq.Expressions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘Newtonsoft.Json’ matches identity ‘System.Linq.Expressions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Linq.Expressions’, you may need to supply runtime policy

I have added the following namespaces in the imports
System.Globalization
System.Linq
System.Linq.Expression

Just to give a background, I am using CultureInfo for the Date conversion from one language to another country’s language.

Hi @ShivpujanK

Could you please analyze your project from under workflow analyzer in the design ribbon.

And share what errors you are getting there?

Also could you please check if any of your dependencies are showing a red mark?

@ShivpujanK

Check in imports if you see anything in red

second try to change the system package version to any other version and check

cheers

Hi @sonaliaggarwal47
I have done as per your suggestion already, but the issue persists.
Workflow analyzer - No error, some warnings but can be ignored (Best practice related)
All dependencies are updated to the latest version.
Studio version 2024.10.6

Hi @Anil_G
Imports look good, and nothing is in red.
System activities packages downgraded to 23.x, 24.x (first and last), later upgraded to the latest version. But still no luck.

@ShivpujanK

can you show what all packages are used

looks like there are two versions of same sub package which is creating the issue

cheers

@ShivpujanK,

It’s dependency package mismatch.

Try this solution

Delete the project.json
Reopen the project and let the studio rebuild the project.json

which version of system package you have right now? 24.x?

Can you please show the snapshots from your project dependencies?

Hi @Anil_G and @sonaliaggarwal47 ,
Below is the screenshot of the packages that I am using for this project.

Hi @ashokkarale ,

Thanks for the suggestion, but I tried this as a first thing.

1 Like

check out if all workflow files have the imports.

@ShivpujanK

Thats a huge list..can you search system.linq and see which packages are having different version of it

Simply type system.linq in search bar in the projects menu

Cheers

Hi @Jaeyoung_Jung,

I don’t think that’s possible, I have more than 50 workflow where System.GLobalization and System.Linq to be imported. Only challange is that it might consume lot of time and don’t know the consequences (impact on performance) after importing in all the workflows.

Hi @Anil_G,

I did, and below is the screenshot.

@ShivpujanK

do you have .net runtime 6 and 8 installed on the system?

can you remove one of them please if so

cheers

Hi @Anil_G,

Let me try quickly and confirm you back.

1 Like

@Anil_G

@ShivpujanK

just remove .net 8 runtime and check…that should resolve ideally

cheers

Here’s a sequence to get namespace list with for each.

BlankProcess13.zip (87.1 KB)

Thanks for sharing. Let me integrate and test.