Unused Dependencies error System.AggregateException even after removing unused dependencies

Hi people,

I can’t seem to publish any robots as I keep getting the Unused Dependencies error, I have already used the Remove Unused Dependencies feature and still not getting anywhere. I have even changed the Workflow Analyzer settings so that this code is set as ‘Warning’ instead of ‘Error’ but still no joy.

Here it is in detail:

Error ST-USG-010 Unused Dependencies System.AggregateException: One or more errors occurred. (Method not found: ‘Void UiPath.Studio.Plugin.Workflow.CodeAnalysis.UnusedPackagesResolver.UnusedPackagesResolver…ctor(UiPath.Studio.Plugin.Workflow.CodeAnalysis.Interfaces.IExpressionCompiler)’.)
—> System.MissingMethodException: Method not found: ‘Void UiPath.Studio.Plugin.Workflow.CodeAnalysis.UnusedPackagesResolver.UnusedPackagesResolver…ctor(UiPath.Studio.Plugin.Workflow.CodeAnalysis.Interfaces.IExpressionCompiler)’.
at UiPath.Studio.RulesLibrary.Rules.Usage.UnusedDependenciesContextAdapter.GetUnusedDependencies(IProjectModel projectModel)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at UiPath.Studio.RulesLibrary.Rules.Usage.UnusedDependenciesContextAdapter.GetUnusedDependencies(IProjectModel projectModel)
at UiPath.Studio.RulesLibrary.Rules.Usage.UnusedDependenciesRule.<>c__DisplayClass3_0.<b__0>d.MoveNext() in D:\a\1\s\Studio\WorkflowAnalyzer\UiPath.Studio.RulesLibrary\Rules\Usage\UnusedDependenciesRule.cs:line 29
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at UiPath.Studio.RulesLibrary.Rules.Usage.UnusedDependenciesRule.Inspect(IProjectModel projectModel, Rule ruleInstance) in D:\a\1\s\Studio\WorkflowAnalyzer\UiPath.Studio.RulesLibrary\Rules\Usage\UnusedDependenciesRule.cs:line 29 at UiPath.Studio.Analyzer.Execution.Jobs.RuleJob1.ExecuteInternal()
at UiPath.Studio.Analyzer.Execution.Jobs.JobBase.Execute()

Thanks

Hello @Ope_Johnson!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff