Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run into Fatal error. Internal CLR error when trying to build System.IO.FileSystem.AccessControl.sln #92478

Closed
karakasa opened this issue Sep 22, 2023 · 3 comments

Comments

@karakasa
Copy link
Contributor

karakasa commented Sep 22, 2023

Description

Building System.IO.FileSystem.AccessControl.sln fails after I just updated my local repo to the latest.

  • build.cmd returns Fatal error. Internal CLR error. (0x80131506).
  • Visual Studio returns various MSB errors.
    • it seems ILLink.Tasks.dll is locked by MSBuild initated by the building process itself. System.Runtime.dll is there but the building process cannot find it.

Reproduction Steps

  1. Clone the latest repo.
  2. Run build -projects src/libraries/*/System.IO.FileSystem.AccessControl.sln or builds it in the Visual Studio.

Expected behavior

The solution file builds.

Actual behavior

Error log of building in Visual Studio
Error	MSB3021	Unable to copy file "D:\repos\karakasa\runtime\artifacts\obj\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll" to "D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll". The process cannot access the file 'D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll' because it is being used by another process.	ILLink.Tasks	C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets	4702		

Error MSB3027 Could not copy "D:\repos\karakasa\runtime\artifacts\obj\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll" to "D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll". Exceeded retry count of 10. Failed. The file is locked by: "MSBuild.exe (21392)" ILLink.Tasks C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 4702

Error MSB4062 The "CombineLinkerXmlFiles" task could not be loaded from the assembly D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0/ILLink.Tasks.dll. Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。 Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. System.Private.CoreLib (srcsrc\System.Private.CoreLib) D:\repos\karakasa\runtime\src\coreclr\System.Private.CoreLib\CreateRuntimeRootILLinkDescriptorFile.targets 52

Error MSB4062 The "CombineLinkerXmlFiles" task could not be loaded from the assembly D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0/ILLink.Tasks.dll. Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。 Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. System.Private.CoreLib (srcsrc\System.Private.CoreLib) D:\repos\karakasa\runtime\eng\illink.targets 171

Error MSB4062 The "CombineLinkerXmlFiles" task could not be loaded from the assembly D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0/ILLink.Tasks.dll. Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。 Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. System.IO.FileSystem.AccessControl (src\System.IO.FileSystem.AccessControl) D:\repos\karakasa\runtime\eng\illink.targets 171

Error MSB4062 The "CombineLinkerXmlFiles" task could not be loaded from the assembly D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0/ILLink.Tasks.dll. Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。 Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. System.IO.FileSystem.AccessControl (src\System.IO.FileSystem.AccessControl) D:\repos\karakasa\runtime\eng\illink.targets 171

Error MSB4018 The "Microsoft.DotNet.ApiCompat.Task.ValidateAssembliesTask" task failed unexpectedly.
System.IO.FileNotFoundException: Could not find the provided path 'D:\repos\karakasa\runtime\artifacts\bin\System.Runtime\ref\Debug\net9.0\System.Runtime.dll' to load binaries from.
at Microsoft.DotNet.ApiSymbolExtensions.AssemblySymbolLoader.LoadFromPaths(IEnumerable1 paths, ImmutableHashSet1 referenceAssemblyNamesToIgnore) in //src/Microsoft.DotNet.ApiSymbolExtensions/AssemblySymbolLoader.cs:line 264
at Microsoft.DotNet.ApiSymbolExtensions.AssemblySymbolLoader.LoadAssemblies(String[] paths) in /
/src/Microsoft.DotNet.ApiSymbolExtensions/AssemblySymbolLoader.cs:line 97
at Microsoft.DotNet.ApiCompatibility.Runner.ApiCompatRunner.CreateAssemblySymbols(IReadOnlyList1 metadataInformation, ApiCompatRunnerOptions options, Boolean& resolvedExternallyProvidedAssemblyReferences) in /_/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunner.cs:line 136 at Microsoft.DotNet.ApiCompatibility.Runner.ApiCompatRunner.ExecuteWorkItems() in /_/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunner.cs:line 47 at Microsoft.DotNet.ApiCompat.ValidateAssemblies.Run(Func2 logFactory, Boolean generateSuppressionFile, Boolean preserveUnnecessarySuppressions, Boolean permitUnnecessarySuppressions, String[] suppressionFiles, String suppressionOutputFile, String noWarn, Boolean respectInternals, Boolean enableRuleAttributesMustMatch, String[] excludeAttributesFiles, Boolean enableRuleCannotChangeParameterName, String[] leftAssemblies, String[] rightAssemblies, Boolean enableStrictMode, String[][] leftAssembliesReferences, String[][] rightAssembliesReferences, Boolean createWorkItemPerAssembly, ValueTuple2[] leftAssembliesTransformationPatterns, ValueTuple2[] rightAssembliesTransformationPatterns) in //src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidateAssemblies.cs:line 89
at Microsoft.DotNet.ApiCompat.Task.ValidateAssembliesTask.ExecuteCore() in /
/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidateAssembliesTask.cs:line 135
at Microsoft.NET.Build.Tasks.TaskBase.Execute() in //src/Tasks/Common/TaskBase.cs:line 50
at Microsoft.DotNet.ApiCompat.Task.ValidateAssembliesTask.Execute() in /
/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidateAssembliesTask.cs:line 125
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() System.Runtime (src\System.Runtime) C:\Users\ganke.nuget\packages\microsoft.dotnet.apicompat.task\9.0.100-alpha.1.23468.31\build\Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets 16

Error log of `build.cmd`
D:\repos\karakasa\runtime>build -projects src/libraries/*/System.IO.FileSystem.AccessControl.sln
  正在确定要还原的项目…
Fatal error. Internal CLR error. (0x80131506)
   at System.Runtime.Serialization.SerializationGuard.g__ThrowIfDeserializationInProgress|0_0(System.Runtime.Serialization.SerializationInfo, System.String, Int32 ByRef)
   at System.Diagnostics.Process.Start()
   at Microsoft.Build.Utilities.ToolTask.ExecuteTool(System.String, System.String, System.String)
   at Microsoft.Build.Tasks.Exec.ExecuteTool(System.String, System.String, System.String)
   at Microsoft.Build.Utilities.ToolTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder+d__25.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__25, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__25 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__25, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__25 ByRef)
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(Microsoft.Build.BackEnd.ITaskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext, Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.ItemBucket, Microsoft.Build.BackEnd.TaskExecutionMode)
   at Microsoft.Build.BackEnd.TaskBuilder+d__23.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__23 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__23 ByRef)
   at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(Microsoft.Build.BackEnd.Logging.TaskLoggingContext, Microsoft.Build.BackEnd.ItemBucket, System.Collections.Generic.IDictionary`2, Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.TaskExecutionMode)
   at Microsoft.Build.BackEnd.TaskBuilder+d__19.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__19, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__19 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__19, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__19 ByRef)
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.ItemBucket, Microsoft.Build.BackEnd.TaskExecutionMode, System.Collections.Generic.Dictionary`2)
   at Microsoft.Build.BackEnd.TaskBuilder+d__18.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__18, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__18 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__18, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__18 ByRef)
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup)
   at Microsoft.Build.BackEnd.TaskBuilder+d__13.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__13, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__13 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__13, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__13 ByRef)
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.Logging.TargetLoggingContext, Microsoft.Build.BackEnd.BuildRequestEntry, Microsoft.Build.BackEnd.ITargetBuilderCallback, Microsoft.Build.Execution.ProjectTargetInstanceChild, Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup, Microsoft.Build.BackEnd.Lookup, System.Threading.CancellationToken)
   at Microsoft.Build.BackEnd.TargetEntry+d__51.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TargetEntry+d__51, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__51 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TargetEntry+d__51, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__51 ByRef)
   at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(Microsoft.Build.BackEnd.ITaskBuilder, Microsoft.Build.BackEnd.Logging.TargetLoggingContext, Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup, Microsoft.Build.BackEnd.Lookup)
   at Microsoft.Build.BackEnd.TargetEntry+d__44.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TargetEntry+d__44, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__44 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.Build.BackEnd.TargetEntry+d__44, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__44 ByRef)
   at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(Microsoft.Build.BackEnd.ITaskBuilder, Microsoft.Build.BackEnd.BuildRequestEntry, Microsoft.Build.BackEnd.Logging.ProjectLoggingContext, System.Threading.CancellationToken)
   at Microsoft.Build.BackEnd.TargetBuilder+d__23.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Build.BackEnd.TargetBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ExecutionContextCallback(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Build.BackEnd.TargetBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext(System.Threading.Thread)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Build.BackEnd.TargetBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()
   at System.Runtime.CompilerServices.TaskAwaiter+<>c.b__12_0(System.Action, System.Threading.Tasks.Task)
   at System.Threading.Tasks.TaskSchedulerAwaitTaskContinuation+<>c.b__2_0(System.Object)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
   at System.Threading.Tasks.Task.ExecuteEntry()
   at Microsoft.Build.BackEnd.RequestBuilder+DedicatedThreadsTaskScheduler.b__6_0()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
Build failed with exit code -1073741819. Check errors above.
Some builds failed:
        Configuration: Debug, Architecture: x64

Regression?

The solution is successfully built 6 hours ago, before I updated the repo and VS.

Known Workarounds

No response

Configuration

Local .NET: 8.0.100-rc.1.23415.11
Visual Studio version: 17.8.0 Preview 2.0
Visual Studio Code version: Version: 1.82.2 abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
OS: Windows 10 x64 22H2

Other information

Visual Studio Code fails to load the solution file:

[Info  - 9:50:09 PM] [Program] Language server initialized
[Info  - 9:50:09 PM] [LanguageServerProjectSystem] Loaded MSBuild in-process from C:\Program Files\dotnet\sdk\7.0.306
[Info  - 9:50:09 PM] [LanguageServerProjectSystem] Loading d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\System.IO.FileSystem.AccessControl.sln...
[Info  - 9:50:13 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime\ref\System.Runtime.csproj
[Info  - 9:50:13 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Collections.NonGeneric\ref\System.Collections.NonGeneric.csproj
[Info  - 9:50:13 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\ref\System.IO.FileSystem.AccessControl.csproj
[Info  - 9:50:16 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\tests\System.IO.FileSystem.AccessControl.Tests.csproj
[Info  - 9:50:16 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime.InteropServices\gen\LibraryImportGenerator\LibraryImportGenerator.csproj
[Info  - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Security.Claims\ref\System.Security.Claims.csproj
[Info  - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\linker\ref\Mono.Linker.csproj
[Info  - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Private.CoreLib\gen\System.Private.CoreLib.Generators.csproj
[Info  - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Private.CoreLib\ref\System.Private.CoreLib.csproj
[Info  - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime.InteropServices\gen\ComInterfaceGenerator\ComInterfaceGenerator.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime\src\System.Runtime.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Security.AccessControl\ref\System.Security.AccessControl.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Security.Principal.Windows\ref\System.Security.Principal.Windows.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Private.Uri\src\System.Private.Uri.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\ILLink.RoslynAnalyzer\ILLink.RoslynAnalyzer.csproj
[Info  - 9:50:19 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\ILLink.CodeFix\ILLink.CodeFixProvider.csproj
[Info  - 9:50:19 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\linker\Mono.Linker.csproj
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\Common\tests\TestUtilities\TestUtilities.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\src\System.IO.FileSystem.AccessControl.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Security.Permissions\ref\System.Security.Permissions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.DirectoryServices\src\System.DirectoryServices.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.DirectoryServices\ref\System.DirectoryServices.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\coreclr\System.Private.CoreLib\System.Private.CoreLib.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Windows.Extensions\ref\System.Windows.Extensions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\shims\stubs\System.Drawing.Common.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\tools\illink\src\ILLink.Tasks\ILLink.Tasks.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Windows.Extensions\src\System.Windows.Extensions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Security.Permissions\src\System.Security.Permissions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Info  - 9:50:21 PM] [LanguageServerProjectSystem] Completed (re)load of all projects in 00:00:11.6314810
[Error - 9:50:21 PM] [BuildHost PID 8472] Exception while shutting down the BuildHost process. StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
 ---> System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at StreamJsonRpc.MessageHandlerBase.WriteAsync(JsonRpcMessage content, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.SendAsync(JsonRpcMessage message, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager.BuildHostProcess.DisposeAsync() in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/BuildHostProcessManager.cs:line 254
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Sep 22, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Sep 22, 2023
@vcsjones
Copy link
Member

This looks like a duplicate of #92007.

@vcsjones vcsjones added area-System.IO and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Sep 22, 2023
@ghost
Copy link

ghost commented Sep 22, 2023

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

Building System.IO.FileSystem.AccessControl.sln fails after I just updated my local repo to the latest.

  • build.cmd returns Fatal error. Internal CLR error. (0x80131506).
  • Visual Studio returns various MSB errors.
    • it seems ILLink.Tasks.dll is locked by MSBuild initated by the building process itself. System.Runtime.dll is there but the building process cannot find it.

Reproduction Steps

  1. Clone the latest repo.
  2. Run build -projects src/libraries/*/System.IO.FileSystem.AccessControl.sln or builds it in the Visual Studio.

Expected behavior

The solution file builds.

Actual behavior

Error log of building in Visual Studio
Error	MSB3021	Unable to copy file "D:\repos\karakasa\runtime\artifacts\obj\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll" to "D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll". The process cannot access the file 'D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll' because it is being used by another process.	ILLink.Tasks	C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets	4702		

Error MSB3027 Could not copy "D:\repos\karakasa\runtime\artifacts\obj\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll" to "D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0\ILLink.Tasks.dll". Exceeded retry count of 10. Failed. The file is locked by: "MSBuild.exe (21392)" ILLink.Tasks C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 4702

Error MSB4062 The "CombineLinkerXmlFiles" task could not be loaded from the assembly D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0/ILLink.Tasks.dll. Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。 Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. System.Private.CoreLib (srcsrc\System.Private.CoreLib) D:\repos\karakasa\runtime\src\coreclr\System.Private.CoreLib\CreateRuntimeRootILLinkDescriptorFile.targets 52

Error MSB4062 The "CombineLinkerXmlFiles" task could not be loaded from the assembly D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0/ILLink.Tasks.dll. Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。 Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. System.Private.CoreLib (srcsrc\System.Private.CoreLib) D:\repos\karakasa\runtime\eng\illink.targets 171

Error MSB4062 The "CombineLinkerXmlFiles" task could not be loaded from the assembly D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0/ILLink.Tasks.dll. Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。 Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. System.IO.FileSystem.AccessControl (src\System.IO.FileSystem.AccessControl) D:\repos\karakasa\runtime\eng\illink.targets 171

Error MSB4062 The "CombineLinkerXmlFiles" task could not be loaded from the assembly D:\repos\karakasa\runtime\artifacts\bin\ILLink.Tasks\Debug\net8.0/ILLink.Tasks.dll. Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。 Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. System.IO.FileSystem.AccessControl (src\System.IO.FileSystem.AccessControl) D:\repos\karakasa\runtime\eng\illink.targets 171

Error MSB4018 The "Microsoft.DotNet.ApiCompat.Task.ValidateAssembliesTask" task failed unexpectedly.
System.IO.FileNotFoundException: Could not find the provided path 'D:\repos\karakasa\runtime\artifacts\bin\System.Runtime\ref\Debug\net9.0\System.Runtime.dll' to load binaries from.
at Microsoft.DotNet.ApiSymbolExtensions.AssemblySymbolLoader.LoadFromPaths(IEnumerable1 paths, ImmutableHashSet1 referenceAssemblyNamesToIgnore) in //src/Microsoft.DotNet.ApiSymbolExtensions/AssemblySymbolLoader.cs:line 264
at Microsoft.DotNet.ApiSymbolExtensions.AssemblySymbolLoader.LoadAssemblies(String[] paths) in /
/src/Microsoft.DotNet.ApiSymbolExtensions/AssemblySymbolLoader.cs:line 97
at Microsoft.DotNet.ApiCompatibility.Runner.ApiCompatRunner.CreateAssemblySymbols(IReadOnlyList1 metadataInformation, ApiCompatRunnerOptions options, Boolean& resolvedExternallyProvidedAssemblyReferences) in /_/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunner.cs:line 136 at Microsoft.DotNet.ApiCompatibility.Runner.ApiCompatRunner.ExecuteWorkItems() in /_/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunner.cs:line 47 at Microsoft.DotNet.ApiCompat.ValidateAssemblies.Run(Func2 logFactory, Boolean generateSuppressionFile, Boolean preserveUnnecessarySuppressions, Boolean permitUnnecessarySuppressions, String[] suppressionFiles, String suppressionOutputFile, String noWarn, Boolean respectInternals, Boolean enableRuleAttributesMustMatch, String[] excludeAttributesFiles, Boolean enableRuleCannotChangeParameterName, String[] leftAssemblies, String[] rightAssemblies, Boolean enableStrictMode, String[][] leftAssembliesReferences, String[][] rightAssembliesReferences, Boolean createWorkItemPerAssembly, ValueTuple2[] leftAssembliesTransformationPatterns, ValueTuple2[] rightAssembliesTransformationPatterns) in //src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidateAssemblies.cs:line 89
at Microsoft.DotNet.ApiCompat.Task.ValidateAssembliesTask.ExecuteCore() in /
/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidateAssembliesTask.cs:line 135
at Microsoft.NET.Build.Tasks.TaskBase.Execute() in //src/Tasks/Common/TaskBase.cs:line 50
at Microsoft.DotNet.ApiCompat.Task.ValidateAssembliesTask.Execute() in /
/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidateAssembliesTask.cs:line 125
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() System.Runtime (src\System.Runtime) C:\Users\ganke.nuget\packages\microsoft.dotnet.apicompat.task\9.0.100-alpha.1.23468.31\build\Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets 16

Error log of `build.cmd`
D:\repos\karakasa\runtime>build -projects src/libraries/*/System.IO.FileSystem.AccessControl.sln
  正在确定要还原的项目…
Fatal error. Internal CLR error. (0x80131506)
   at System.Runtime.Serialization.SerializationGuard.g__ThrowIfDeserializationInProgress|0_0(System.Runtime.Serialization.SerializationInfo, System.String, Int32 ByRef)
   at System.Diagnostics.Process.Start()
   at Microsoft.Build.Utilities.ToolTask.ExecuteTool(System.String, System.String, System.String)
   at Microsoft.Build.Tasks.Exec.ExecuteTool(System.String, System.String, System.String)
   at Microsoft.Build.Utilities.ToolTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder+d__25.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__25, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__25 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__25, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__25 ByRef)
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(Microsoft.Build.BackEnd.ITaskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext, Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.ItemBucket, Microsoft.Build.BackEnd.TaskExecutionMode)
   at Microsoft.Build.BackEnd.TaskBuilder+d__23.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__23 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__23 ByRef)
   at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(Microsoft.Build.BackEnd.Logging.TaskLoggingContext, Microsoft.Build.BackEnd.ItemBucket, System.Collections.Generic.IDictionary`2, Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.TaskExecutionMode)
   at Microsoft.Build.BackEnd.TaskBuilder+d__19.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__19, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__19 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__19, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__19 ByRef)
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.ItemBucket, Microsoft.Build.BackEnd.TaskExecutionMode, System.Collections.Generic.Dictionary`2)
   at Microsoft.Build.BackEnd.TaskBuilder+d__18.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__18, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__18 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__18, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__18 ByRef)
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup)
   at Microsoft.Build.BackEnd.TaskBuilder+d__13.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+d__13, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__13 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TaskBuilder+d__13, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__13 ByRef)
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.Logging.TargetLoggingContext, Microsoft.Build.BackEnd.BuildRequestEntry, Microsoft.Build.BackEnd.ITargetBuilderCallback, Microsoft.Build.Execution.ProjectTargetInstanceChild, Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup, Microsoft.Build.BackEnd.Lookup, System.Threading.CancellationToken)
   at Microsoft.Build.BackEnd.TargetEntry+d__51.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TargetEntry+d__51, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__51 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.Build.BackEnd.TargetEntry+d__51, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__51 ByRef)
   at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(Microsoft.Build.BackEnd.ITaskBuilder, Microsoft.Build.BackEnd.Logging.TargetLoggingContext, Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup, Microsoft.Build.BackEnd.Lookup)
   at Microsoft.Build.BackEnd.TargetEntry+d__44.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TargetEntry+d__44, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__44 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.Build.BackEnd.TargetEntry+d__44, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](d__44 ByRef)
   at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(Microsoft.Build.BackEnd.ITaskBuilder, Microsoft.Build.BackEnd.BuildRequestEntry, Microsoft.Build.BackEnd.Logging.ProjectLoggingContext, System.Threading.CancellationToken)
   at Microsoft.Build.BackEnd.TargetBuilder+d__23.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Build.BackEnd.TargetBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ExecutionContextCallback(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Build.BackEnd.TargetBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext(System.Threading.Thread)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Build.BackEnd.TargetBuilder+d__23, Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()
   at System.Runtime.CompilerServices.TaskAwaiter+<>c.b__12_0(System.Action, System.Threading.Tasks.Task)
   at System.Threading.Tasks.TaskSchedulerAwaitTaskContinuation+<>c.b__2_0(System.Object)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
   at System.Threading.Tasks.Task.ExecuteEntry()
   at Microsoft.Build.BackEnd.RequestBuilder+DedicatedThreadsTaskScheduler.b__6_0()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
Build failed with exit code -1073741819. Check errors above.
Some builds failed:
        Configuration: Debug, Architecture: x64

Regression?

The solution is successfully built 6 hours ago, before I updated the repo and VS.

Known Workarounds

No response

Configuration

Local .NET: 8.0.100-rc.1.23415.11
Visual Studio version: 17.8.0 Preview 2.0
Visual Studio Code version: Version: 1.82.2 abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
OS: Windows 10 x64 22H2

Other information

Visual Studio Code fails to load the solution file:

[Info  - 9:50:09 PM] [Program] Language server initialized
[Info  - 9:50:09 PM] [LanguageServerProjectSystem] Loaded MSBuild in-process from C:\Program Files\dotnet\sdk\7.0.306
[Info  - 9:50:09 PM] [LanguageServerProjectSystem] Loading d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\System.IO.FileSystem.AccessControl.sln...
[Info  - 9:50:13 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime\ref\System.Runtime.csproj
[Info  - 9:50:13 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Collections.NonGeneric\ref\System.Collections.NonGeneric.csproj
[Info  - 9:50:13 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\ref\System.IO.FileSystem.AccessControl.csproj
[Info  - 9:50:16 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\tests\System.IO.FileSystem.AccessControl.Tests.csproj
[Info  - 9:50:16 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime.InteropServices\gen\LibraryImportGenerator\LibraryImportGenerator.csproj
[Info  - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Security.Claims\ref\System.Security.Claims.csproj
[Info  - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\linker\ref\Mono.Linker.csproj
[Info  - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Private.CoreLib\gen\System.Private.CoreLib.Generators.csproj
[Info  - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Private.CoreLib\ref\System.Private.CoreLib.csproj
[Info  - 9:50:17 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime.InteropServices\gen\ComInterfaceGenerator\ComInterfaceGenerator.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime\src\System.Runtime.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Security.AccessControl\ref\System.Security.AccessControl.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Security.Principal.Windows\ref\System.Security.Principal.Windows.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Private.Uri\src\System.Private.Uri.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\libraries\System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj
[Info  - 9:50:18 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\ILLink.RoslynAnalyzer\ILLink.RoslynAnalyzer.csproj
[Info  - 9:50:19 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\ILLink.CodeFix\ILLink.CodeFixProvider.csproj
[Info  - 9:50:19 PM] [LanguageServerProjectSystem] Successfully completed load of d:\repos\karakasa\runtime\src\tools\illink\src\linker\Mono.Linker.csproj
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\Common\tests\TestUtilities\TestUtilities.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.IO.FileSystem.AccessControl\src\System.IO.FileSystem.AccessControl.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Security.Permissions\ref\System.Security.Permissions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.DirectoryServices\src\System.DirectoryServices.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.DirectoryServices\ref\System.DirectoryServices.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\coreclr\System.Private.CoreLib\System.Private.CoreLib.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Windows.Extensions\ref\System.Windows.Extensions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\shims\stubs\System.Drawing.Common.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\tools\illink\src\ILLink.Tasks\ILLink.Tasks.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Windows.Extensions\src\System.Windows.Extensions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Error - 9:50:21 PM] [LanguageServerProjectSystem] Exception thrown while loading d:\repos\karakasa\runtime\src\libraries\System.Security.Permissions\src\System.Security.Permissions.csproj StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 312
[Info  - 9:50:21 PM] [LanguageServerProjectSystem] Completed (re)load of all projects in 00:00:11.6314810
[Error - 9:50:21 PM] [BuildHost PID 8472] Exception while shutting down the BuildHost process. StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.
 ---> System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at StreamJsonRpc.MessageHandlerBase.WriteAsync(JsonRpcMessage content, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.SendAsync(JsonRpcMessage message, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager.BuildHostProcess.DisposeAsync() in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/BuildHostProcessManager.cs:line 254
Author: karakasa
Assignees: -
Labels:

area-System.IO, untriaged

Milestone: -

@adamsitnik
Copy link
Member

@karakasa thank you for logging the issue! It got fixed recently and will be included in .NET 8 RC2, but dotnet/runtime is still using RC1 bits.

#92007 (comment)

@adamsitnik adamsitnik closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Sep 22, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants