Hi @Krishna Priya Cherungottil,
Thank you for posting in this community.
Since your problem is so complex and we can't reproduce it, we need to narrow down the problem and try some things.
However, we can work together to narrow down and resolve the situation. So, Please kindly provide more information below to let us work further.
1.Check that your projects are set to compile against the right version of the .NET framework. If your project dll references are using an older version of .NET but you are compiling against a newer one that could cause problems.
2.You should use the Assembly Binding log viewer (also known as Fuslogvw) to record exactly what dlls are failing to load and where they are being looked for as it may just be that one of them is not in the right place, but it should give you more information on why it can't be loaded.
3.If you are referencing a x64 dll on an x86 system, or vice versa that would also cause a similar error.
- Are all workflows migrating from VS2017 to VS2022 having the same issue?
5.Are your other colleagues having the same problem? You can ask your other colleagues to build on their computers and see if the problem persists.
6.I did not find any information about not supporting SharePoint Sequential Workflow or State Machine Workflows after VS2019. Can you tell me where you got this information? Could you share the link to the article with me if it is convenient?
Thank you for your time and efforts in advance. If there is any other assistance I can provide, please feel free to let me know.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.