Ungraceful failure when requesting taskhost that doesn't exist
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
> I've tried building the following on a regular Intel machine and while it fails spectacularly, this change doesn't seem to make a difference.
>
> ```xml
>
>
>
>
>
>
> ```
_Originally posted by @ladipro in https://github.com/dotnet/msbuild/issues/8473#issuecomment-1440054181_
... and indeed it _is_ a spectacular failure:
```
❯ msbuild .\foo.proj -v:q
MSBuild version 17.6.0-preview-23117-04+c5cceaabe for .NET Framework
MSBUILD : error : This is an unhandled exception in MSBuild -- PLEASE UPVOTE AN EXISTING ISSUE OR FILE A NEW ONE AT https://aka.ms/msbuild/unhandled. [S:\msbui
ld\foo.proj]
MSBUILD : error : Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes. [S:\msbuild\f
oo.proj]
MSBUILD : error : ============= [S:\msbuild\foo.proj]
MSBUILD : error : System.AggregateException: One or more errors occurred. ---> Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.ex
e could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm
64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable. [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId) [S:\msbuild\foo.proj]
MSBUILD : error : --- End of inner exception stack trace --- [S:\msbuild\foo.proj]
MSBUILD : error : ---> (Inner Exception #0) Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child
node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm64\MSBuild.exe". If necessary, spec
ify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable. [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId)<--- [S:\msbuild\foo.proj]
MSBUILD : error : [S:\msbuild\foo.proj]
MSBUILD : error : [S:\msbuild\foo.proj]
MSBUILD : error : ---> System.AggregateException: One or more errors occurred. ---> Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBu
ild.exe could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\B
in\arm64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable. [S:\msbuild\foo.pr
oj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId) [S:\msbuild\foo.proj]
MSBUILD : error : --- End of inner exception stack trace --- [S:\msbuild\foo.proj]
MSBUILD : error : --- End of inner exception stack trace --- [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.GetNodes(String msbuildLocation, String commandLineArgs, Int32 nextNodeId, INodePacke
tFactory factory, Handshake hostHandshake, NodeContextCreatedDelegate createNode, NodeContextTerminateDelegate terminateNode, Int32 numberOfNodesToCreate) [S:\
msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcTaskHost.CreateNode(HandshakeOptions hostContext, INodePacketFactory factory, INodePacketH
andler handler, TaskHostConfiguration configuration) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcTaskHost.AcquireAndSetUpHost(HandshakeOptions hostContext, INodePacketFactory factory, INo
dePacketHandler handler, TaskHostConfiguration configuration) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskHostTask.Execute() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskBuilder.d__24.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskBuilder.d__19.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskBuilder.d__18.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskBuilder.d__13.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TargetEntry.d__51.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TargetEntry.d__44.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TargetBuilder.d__23.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TargetBuilder.d__10.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.RequestBuilder.d__68.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.RequestBuilder.d__59.MoveNext() [S:\msbuild\foo.proj]
Build FAILED.
MSBUILD : error : This is an unhandled exception in MSBuild -- PLEASE UPVOTE AN EXISTING ISSUE OR FILE A NEW ONE AT https://aka.ms/msbuild/unhandled. [S:\msbui
ld\foo.proj]
MSBUILD : error : Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes. [S:\msbuild\f
oo.proj]
MSBUILD : error : ============= [S:\msbuild\foo.proj]
MSBUILD : error : System.AggregateException: One or more errors occurred. ---> Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.ex
e could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm
64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable. [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId) [S:\msbuild\foo.proj]
MSBUILD : error : --- End of inner exception stack trace --- [S:\msbuild\foo.proj]
MSBUILD : error : ---> (Inner Exception #0) Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child
node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm64\MSBuild.exe". If necessary, spec
ify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable. [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId)<--- [S:\msbuild\foo.proj]
MSBUILD : error : [S:\msbuild\foo.proj]
MSBUILD : error : [S:\msbuild\foo.proj]
MSBUILD : error : ---> System.AggregateException: One or more errors occurred. ---> Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBu
ild.exe could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\B
in\arm64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable. [S:\msbuild\foo.pr
oj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId) [S:\msbuild\foo.proj]
MSBUILD : error : --- End of inner exception stack trace --- [S:\msbuild\foo.proj]
MSBUILD : error : --- End of inner exception stack trace --- [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.GetNodes(String msbuildLocation, String commandLineArgs, Int32 nextNodeId, INodePacke
tFactory factory, Handshake hostHandshake, NodeContextCreatedDelegate createNode, NodeContextTerminateDelegate terminateNode, Int32 numberOfNodesToCreate) [S:\
msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcTaskHost.CreateNode(HandshakeOptions hostContext, INodePacketFactory factory, INodePacketH
andler handler, TaskHostConfiguration configuration) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.NodeProviderOutOfProcTaskHost.AcquireAndSetUpHost(HandshakeOptions hostContext, INodePacketFactory factory, INo
dePacketHandler handler, TaskHostConfiguration configuration) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskHostTask.Execute() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskBuilder.d__24.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskBuilder.d__19.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskBuilder.d__18.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TaskBuilder.d__13.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TargetEntry.d__51.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TargetEntry.d__44.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TargetBuilder.d__23.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.TargetBuilder.d__10.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.RequestBuilder.d__68.MoveNext() [S:\msbuild\foo.proj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [S:\msbuild\foo.proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [S:\msbuild\foo.proj]
MSBUILD : error : at Microsoft.Build.BackEnd.RequestBuilder.d__59.MoveNext() [S:\msbuild\foo.proj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.12
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes.
=============
System.AggregateException: One or more errors occurred. ---> Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId)
--- End of inner exception stack trace ---
---> (Inner Exception #0) Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId)<---
---> System.AggregateException: One or more errors occurred. ---> Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.GetNodes(String msbuildLocation, String commandLineArgs, Int32 nextNodeId, INodePacketFactory factory, Handshake hostHandshake, NodeContextCreatedDelegate createNode, NodeContextTerminateDelegate terminateNode, Int32 numberOfNodesToCreate)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcTaskHost.CreateNode(HandshakeOptions hostContext, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcTaskHost.AcquireAndSetUpHost(HandshakeOptions hostContext, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration)
at Microsoft.Build.BackEnd.TaskHostTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Build.BackEnd.TaskBuilder.d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Build.BackEnd.TaskBuilder.d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Build.BackEnd.TaskBuilder.d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Build.BackEnd.TaskBuilder.d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Build.BackEnd.TargetEntry.d__51.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Build.BackEnd.TargetEntry.d__44.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Build.BackEnd.TargetBuilder.d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Build.BackEnd.TargetBuilder.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Build.BackEnd.RequestBuilder.d__68.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Build.BackEnd.RequestBuilder.d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Build.BackEnd.RequestBuilder.d__58.MoveNext()
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes.
=============
System.AggregateException: One or more errors occurred. ---> Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId)
--- End of inner exception stack trace ---
---> (Inner Exception #0) Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId)<---
---> System.AggregateException: One or more errors occurred. ---> Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Boolean needToValidateProject, String schemaFile, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, TextWriter targetsWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsNotAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, ProjectIsolationMode isolateProjects, GraphBuildOptions graphBuildOptions, Boolean lowPriority, String[] inputResultsCaches, String outputResultsCache, String commandLine)
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)
Unhandled Exception: Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes.
=============
System.AggregateException: One or more errors occurred. ---> Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId)
--- End of inner exception stack trace ---
---> (Inner Exception #0) Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId)<---
---> System.AggregateException: One or more errors occurred. ---> Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\arm64\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.g__StartNewNode|2(Int32 nodeId)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int32 nodeId)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Boolean needToValidateProject, String schemaFile, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, TextWriter targetsWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsNotAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, ProjectIsolationMode isolateProjects, GraphBuildOptions graphBuildOptions, Boolean lowPriority, String[] inputResultsCaches, String outputResultsCache, String commandLine)
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)
at Microsoft.Build.CommandLine.MSBuildApp.Main()
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.