Execution failed if project references several other projects
Hello,
I got an issue when I use several ProjectReference into the .csproj I want to use with dotnet try.
I've the latest version of dotnet try : 1.0.19553.4+001b36724d769e844a53b22e3833a23caed3dc68
The project structure is :
- ClassLibraryA built in .NET Standard 2.1
- ClassLibraryB built in .NET Standard 2.1 that reference (project include) the ClassLibraryA
- ClassLibraryC built in .NET Standard 2.1
- ConsoleAppTest built in .NET Core 3.0
I want reference all ClassLibrary projects into my ConsoleAppTest project and I want reference them with ProjectReference and don't use PackageReference.
If I set only one reference dll as project reference and other through package ref, dotnet try works fine. If I set 2 or more reference dll as project reference, dotnet try doesn't work. A file .trydotnet-lock is created but never deleted and the C# code will never executed.
dotnet try --verbose
2020-01-28T12:48:47.5292775Z [MLS.Agent.Program] ⏱ No Key Provided
2020-01-28T12:48:47.5811023Z [|f7701d4-472ed5799777cc4f.] [MLS.Agent.Startup] [ConfigureServices] ▶
2020-01-28T12:48:47.6147304Z [|f7701d4-472ed5799777cc4f.] [MLS.Agent.Startup] [ConfigureServices] ⏹ -> ✔ (33,718900000000005ms)
2020-01-28T12:48:47.6287475Z [|f7701d4-472ed5799777cc4f.] [WorkspaceServer.Packaging.Package] ℹ Packages path is C:\Users\xxx\.trydotnet\packages
2020-01-28T12:48:47.6421066Z [|f7701d4-472ed5799777cc4f.1.] [MLS.Agent.Startup] [Configure] ▶
2020-01-28T12:48:47.7099262Z [|f7701d4-472ed5799777cc4f.1.] [MLS.Agent.Startup] [Configure] ⏹ -> ✔ (67,85770000000001ms)
Hosting environment: Production
Content root path: C:\Users\xxx\.dotnet\tools\.store\dotnet-try\1.0.19553.4\dotnet-try\1.0.19553.4\tools\netcoreapp3.0\any
Now listening on: https://localhost:55781
Application started. Press Ctrl+C to shut down.
2020-01-28T12:48:50.4088084Z [|f7701d5-472ed5799777cc4f.] [MLS.Agent.Controllers.ClientConfigurationController] [ConfigurationAsync] ⏹ -> ✔ (25,4584ms)
2020-01-28T12:48:51.5587130Z [|f7701d6-472ed5799777cc4f.] [MLS.Agent.Controllers.LanguageServicesController] [Diagnostics] ▶
2020-01-28T12:48:51.5589450Z [|f7701d6-472ed5799777cc4f.] [MLS.Agent.Controllers.LanguageServicesController] [Diagnostics] ℹ (0,2652ms) Processing workspaceType C:\Users\xxx\source\repos\ConsoleAppTest\ConsoleAppTest\ConsoleAppTest.csproj
2020-01-28T12:48:52.1329969Z [|f7701d6-472ed5799777cc4f.1.] [WorkspaceServer.Packaging.PackageBase] [Create] ▶
2020-01-28T12:48:52.2456811Z [|f7701d6-472ed5799777cc4f.1.] [WorkspaceServer.Packaging.PackageBase] [Create] ⏹ -> ✔ (112,7412ms)
2020-01-28T12:48:52.2479068Z [|f7701d6-472ed5799777cc4f.2.] [Package:C:\Users\xxx\source\repos\ConsoleAppTest\ConsoleAppTest\ConsoleAppTest.csproj] [EnsureBuilt] ▶
2020-01-28T12:48:52.2490413Z [|f7701d6-472ed5799777cc4f.2.1.] [WorkspaceServer.Packaging.Package] [FullBuild] ▶
2020-01-28T12:48:52.2494510Z [|f7701d6-472ed5799777cc4f.2.1.] [WorkspaceServer.Packaging.Package] [FullBuild] ℹ (0,4217ms) Building package C:\Users\xxx\source\repos\ConsoleAppTest\ConsoleAppTest\ConsoleAppTest.csproj
2020-01-28T12:48:52.3524703Z [|f7701d6-472ed5799777cc4f.2.1.1.] [WorkspaceServer.Packaging.PackageBase] [DotnetBuild] ▶
2020-01-28T12:48:52.3595780Z [|f7701d6-472ed5799777cc4f.2.1.1.] [WorkspaceServer.Packaging.PackageBase] [DotnetBuild] ℹ (7,1177ms) Building package C:\Users\xxx\source\repos\ConsoleAppTest\ConsoleAppTest\ConsoleAppTest.csproj in C:\Users\xxx\source\repos\ConsoleAppTest\ConsoleAppTest
2020-01-28T12:48:52.3628516Z [|f7701d6-472ed5799777cc4f.2.1.1.1.] [CommandLine] [Execute] ▶ Invoking C:\Program Files\dotnet\dotnet.exe build "C:\Users\xxx\source\repos\ConsoleAppTest\ConsoleAppTest\ConsoleAppTest.csproj" /bl:package_fullBuild.binlog
2020-01-28T12:48:52.3647460Z [|f7701d6-472ed5799777cc4f.2.1.1.1.1.] [CommandLine] [StartProcess] ▶
2020-01-28T12:48:52.3652651Z [|f7701d6-472ed5799777cc4f.2.1.1.1.1.] [CommandLine] [StartProcess] ℹ (0,5253ms) launching C:\Program Files\dotnet\dotnet.exe with build "C:\Users\xxx\source\repos\ConsoleAppTest\ConsoleAppTest\ConsoleAppTest.csproj" /bl:package_fullBuild.binlog
2020-01-28T12:48:52.3745716Z [|f7701d6-472ed5799777cc4f.2.1.1.1.1.] [CommandLine] [StartProcess] ⏹ (9,8336ms)
2020-01-28T12:48:54.4968846Z [|f7701d6-472ed5799777cc4f.2.1.1.1.] [CommandLine] [Execute] ⏹ -> ✔ (2134,0462ms) C:\Program Files\dotnet\dotnet.exe build "C:\Users\xxx\source\repos\ConsoleAppTest\ConsoleAppTest\ConsoleAppTest.csproj" /bl:package_fullBuild.binlog exited with 0
2020-01-28T12:48:54.4995125Z [|f7701d6-472ed5799777cc4f.2.1.1.] [WorkspaceServer.Packaging.PackageBase] [DotnetBuild] ⏹ -> ✔ (2147,0522ms)
2020-01-28T12:48:54.5012788Z [|f7701d6-472ed5799777cc4f.2.1.] [WorkspaceServer.Packaging.Package] [FullBuild] ℹ (2252,2501ms) Workspace built
2020-01-28T12:48:54.5013554Z [|f7701d6-472ed5799777cc4f.2.1.] [WorkspaceServer.Packaging.Package] [FullBuild] ⏹ -> ✔ (2252,3253ms)
2020-01-28T12:49:51.5796795Z [|f7701d6-472ed5799777cc4f.] [MLS.Agent.Controllers.LanguageServicesController] [Diagnostics] ⏹ -> ❌ (60021,0013ms)
2020-01-28T12:49:51.5851994Z [MLS.Agent.Middleware.ExceptionFilter] ❌ Clockwise.BudgetExceededException: Budget of 60 seconds exceeded.
at Clockwise.BudgetExtensions.<>c__DisplayClass0_0.<CancelIfExceeds>b__0()
at Clockwise.TaskExtensions.CancelAfter(Task task, CancellationToken cancellationToken, Action ifCancelled)
at Clockwise.BudgetExtensions.CancelIfExceeds(Task task, Budget budget, Action ifCancelled)
at WorkspaceServer.Packaging.Package.ProcessFullBuildRequest(Budget budget)
at WorkspaceServer.Packaging.Package.<SetupWorkspaceCreationFromBuildChannel>b__54_0(Budget budget)
at WorkspaceServer.Servers.Roslyn.PackageExtensions.GetCompilation(IPackage package, IReadOnlyCollection`1 sources, SourceCodeKind sourceCodeKind, IEnumerable`1 defaultUsings, Func`1 workspaceFactory, Budget budget)
at WorkspaceServer.Servers.Roslyn.RoslynWorkspaceServer.GetDiagnostics(WorkspaceRequest request, Budget budget)
at WorkspaceServer.Servers.WorkspaceServerMultiplexer.GetDiagnostics(WorkspaceRequest request, Budget budget)
at MLS.Agent.Controllers.LanguageServicesController.Diagnostics(WorkspaceRequest request, String timeoutInMilliseconds) in F:\workspace\_work\1\s\MLS.Agent\Controllers\LanguageServicesController.cs:line 131
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) Clockwise.BudgetExceededException: Budget of 60 seconds exceeded.
at Clockwise.BudgetExtensions.<>c__DisplayClass0_0.<CancelIfExceeds>b__0()
at Clockwise.TaskExtensions.CancelAfter(Task task, CancellationToken cancellationToken, Action ifCancelled)
at Clockwise.BudgetExtensions.CancelIfExceeds(Task task, Budget budget, Action ifCancelled)
at WorkspaceServer.Packaging.Package.ProcessFullBuildRequest(Budget budget)
at WorkspaceServer.Packaging.Package.<SetupWorkspaceCreationFromBuildChannel>b__54_0(Budget budget)
at WorkspaceServer.Servers.Roslyn.PackageExtensions.GetCompilation(IPackage package, IReadOnlyCollection`1 sources, SourceCodeKind sourceCodeKind, IEnumerable`1 defaultUsings, Func`1 workspaceFactory, Budget budget)
at WorkspaceServer.Servers.Roslyn.RoslynWorkspaceServer.GetDiagnostics(WorkspaceRequest request, Budget budget)
at WorkspaceServer.Servers.WorkspaceServerMultiplexer.GetDiagnostics(WorkspaceRequest request, Budget budget)
at MLS.Agent.Controllers.LanguageServicesController.Diagnostics(WorkspaceRequest request, String timeoutInMilliseconds) in F:\workspace\_work\1\s\MLS.Agent\Controllers\LanguageServicesController.cs:line 131
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
This issue occured when I use dotnet try on windows 10 but I didn't try with other supports/platforms.
Someone already had this issue ?
Thank you for reading.