Hello dears,
The first build works on ADO but the second pipeline return me this message for all my xaml in my library :
##[error]##[error] Guid: 65052eae-0762-411f-9d53-c168a3d47182
##[error] Description : Could not parse file D:\AgentTFS\Ag026B_work\638\s\Library\OsmoseTresoDeconnexion.xaml. Reason: Autofac.Core.DependencyResolutionException: An exception was thrown while activating λ:UiPath.Studio.Platform.Contracts.IPlatformWrapper. —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.IO.FileNotFoundException: Could not load file or assembly ‘System.Activities.ViewModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified. File name: ‘System.Activities.ViewModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ at UiPath.Studio.Platform.Wrapper.ResourceHandling.PlatformWrapper…ctor() at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) — End of inner exception stack trace — at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type) at UiPath.Studio.DataBaseServer.ServiceRegistry.<>c.b__0_5(IServiceResolver sr) at UiPath.Studio.App.ServiceLocator.ServiceLocatorAutofac.<>c__DisplayClass14_01.<RegisterType>b__0(IComponentContext r) at Autofac.RegistrationExtensions.<>c__DisplayClass39_0
1.b__0(IComponentContext c, IEnumerable1 p) at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass0_0
1.b__0(IComponentContext c, IEnumerable1 p) at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable
1 parameters) at Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action1 next) at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action
1 next) at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action
1 next) — End of inner exception stack trace — at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action
1 next) at Autofac.Core.Resolving.Middleware.SharingMiddleware.<>c__DisplayClass5_0.b__0() at Autofac.Core.Lifetime.LifetimeScope.CreateSharedInstance(Guid id, Func1 creator) at Autofac.Core.Lifetime.LifetimeScope.CreateSharedInstance(Guid primaryId, Nullable
1 qualifyingId, Func1 creator) at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action
1 next) at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) at lambda_method215(Closure ) at UiPath.Studio.DataBaseServer.Services.PlatformDependentServicesFactory.CreateService[T](Func
1 factory) at UiPath.Studio.DataBaseServer.Services.PlatformDependentServicesFactory.CreatePlatformWrapper() at UiPath.Studio.DataBaseServer.Services.Workflow.DbWorkflowParser.<>c__DisplayClass10_0.<.ctor>b__1() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy
1.CreateValue() at UiPath.Studio.DataBaseServer.Services.Workflow.DbWorkflowParser.ParseUiPathActivityTypeId(Activity activity, ActivityModel model) at UiPath.Studio.DataBaseServer.Services.Workflow.DbWorkflowParser.ParseHook(Activity activity, ActivityModel model) at UiPath.Studio.DataBaseServer.Shared.Parser.Services.WorkflowParser.ParseActivity(Activity activity, IActivityModel parent, IWorkflowElement immediateParent, IActivityContext parentContext, IWorkflowParseContext workflowParseContext, Boolean useWorkflowViewState) at UiPath.Studio.DataBaseServer.Shared.Parser.Services.WorkflowParser.ParseActivity(Activity activity, IActivityModel parent, IWorkflowElement immediateParent, IActivityContext parentContext, IWorkflowParseContext workflowParseContext, Boolean useWorkflowViewState) at UiPath.Studio.DataBaseServer.Services.Workflow.DbWorkflowParser.<>c__DisplayClass11_0.b__0() at UiPath.Studio.Workflow.Shared.Utilities.MetadataUtils.ExecuteWithMetadataStoreExceptionRetryInternal(Action action, Boolean continueOnCapturedContext, Int32 retryCount, Int32 retryAttemptDelayMs, Func`2 delayFunc) at UiPath.Studio.DataBaseServer.Services.Workflow.DbWorkflowParser.Parse(String fileName, String projectDirectory, CancellationToken cancellationToken)
##[error] ErrorCode :
##[error] ErrorSeverity : Error
##[error] FilePath :
##[error] Recommendation :
I already try to clean dependencies and project.json but the problem is here again…
Someone has the answer ?