在使用Visual Studio做简单代码一段时间后,我无法编译和调试任何项目,并出现以下错误。
==================== 30/05/2023 19:36:53 Recoverable Microsoft.Build.Framework.InternalErrorException:MSB 0001:内部MSBuild错误:无法获取所需数量的节点。============ System.AggregateException:出现一个或多个错误。---> Microsoft.Build.BackEnd.NodeFailedToLaunchException:I criteri di integrità del sistema sono stati violati.文件esplicito negato 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.<GetNodes>g__StartNewNode|2(Int32 nodeId) at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>b__0(Int32 nodeId) --- End of inner exception stack trace --- ---> (Inner Exception #0) Microsoft.Build.BackEnd.NodeFailedToLaunchException: I criteri di integrità del sistema sono stati violati. File esplicito negato 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:出现一个或多个错误。---> Microsoft.Build.BackEnd.NodeFailedToLaunchException:I criteri di integrità del sistema sono stati violati.文件esplicito negato在微软.建造。后端。NodeLauncher。Microsoft的StartInternal(String msbuildLocation,String commandLineArgs)。建造。后端。NodeLauncher。在Microsoft中禁用MSBuildServer(Func 1 func) at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>g__StartNewNode|2(Int32 nodeId) at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>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.NodeProviderOutOfProc.CreateNodes(Int32 nextNodeId, INodePacketFactory factory, Func
2 configurationFactory,Int 32 numberOfNodesToCreate)。建造。后端。NodeManager。Microsoft的AttemptCreateNode(INodeProvider nodeProvider,NodeConfiguration nodeConfiguration,Int 32 numberOfNodesToCreate)。建造。后端。NodeManager。创建节点(NodeConfiguration配置、NodeAffinity nodeAffinity、Int 32 numberOfNodesToCreate)。建造。处决BuildManager。Microsoft.Build. BackEnd. NodeProviderOutOfProcBase上的PerformSchedulingActions(IEnumerable 1 responses) at Microsoft.Build.Execution.BuildManager.<>c__DisplayClass96_0.<IssueBuildRequestForBuildSubmission>g__IssueBuildSubmissionToSchedulerImpl|1(BuildSubmission submission, Boolean allowMainThreadBuild) at Microsoft.Build.Execution.BuildManager.<>c__DisplayClass96_0.<IssueBuildRequestForBuildSubmission>b__0() at Microsoft.Build.Execution.BuildManager.ProcessWorkQueue(Action action) =================== 30/05/2023 19:39:21 Recoverable Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes. ============= System.AggregateException: One or more errors occurred. ---> Microsoft.Build.BackEnd.NodeFailedToLaunchException: I criteri di integrità del sistema sono stati violati. File esplicito negato at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs) at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func
1 func)。<>c__DisplayClass14_0.g__StartNewNode| 2(Int 32 nodeId)at Microsoft. Build. BackEnd. NodeProviderOutOfProcBase.<>c__DisplayClass14_0.b__0(Int 32 nodeId)---内部异常堆栈跟踪结束----->(内部异常#0)Microsoft.Build.BackEnd.NodeFailedToLaunchException:I criteri di integrità del sistema sono stati violati.文件esplicito negato at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation,String commandLineArgs)at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func1 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:出现一个或多个错误。---> Microsoft.Build.BackEnd.NodeFailedToLaunchException:I criteri di integrità del sistema sono stati violati.文件esplicito negato在微软.建造。后端。NodeLauncher。Microsoft的StartInternal(String msbuildLocation,String commandLineArgs)。建造。后端。NodeLauncher。在Microsoft中禁用MSBuildServer(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.NodeProviderOutOfProc.CreateNodes(Int32 nextNodeId, INodePacketFactory factory, Func2 configurationFactory,Int 32 numberOfNodesToCreate)。建造。后端。NodeManager。Microsoft的AttemptCreateNode(INodeProvider nodeProvider,NodeConfiguration nodeConfiguration,Int 32 numberOfNodesToCreate)。建造。后端。NodeManager。创建节点(NodeConfiguration配置、NodeAffinity nodeAffinity、Int 32 numberOfNodesToCreate)。建造。处决BuildManager。Microsoft.Build. Execution. BuildManager上的PerformSchedulingActions(IEnumerable
1响应)。<>c__DisplayClass96_0.g__IssueBuildSubmissionToSchedulerImpl| 1(BuildSubmission提交,布尔值allowMainThreadBuild),位于Microsoft. Build. Execution. BuildManager.<>c__DisplayClass96_0.b__0(),位于Microsoft.Build.Execution.BuildManager.ProcessWorkQueue(Action action action)=========================
1条答案
按热度按时间8xiog9wr1#
我打算把这个作为缺乏评论空间的答案,尽管它可能不是一个实际的答案。
如果我翻译你的异常消息中的意大利语,我会得到:
此消息是由SAC(智能应用程序控制)拒绝某些内容引起的。可能是已经运行的(现有)MSBuild进程(msbuild.exe)的数量。
您可以尝试通过使用类似
taskkill.exe /IM msbuild.exe /F
的东西来杀死所有现有的(可能是剩余的)(最好是在没有构建运行时;- )).除此之外,似乎还有许多原因可能导致此错误(如果您在谷歌上搜索“MSB 00001无法获取节点数”,您会发现一些提示/链接)。