我尝试编译的每个项目都失败,错误如下:
1>------ Build started: Project: ConsoleMenu, Configuration: Debug Any CPU ------
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: The build stopped unexpectedly because of an internal failure.
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: System.Text.EncoderFallbackException: Unable to translate Unicode character \uDF04 at index 1343 to specified code page.
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at System.Text.EncoderExceptionFallbackBuffer.Fallback(Char charUnknown, Int32 index)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at System.Text.EncoderFallbackBuffer.InternalFallback(Char ch, Char*& chars)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at System.Text.UTF8Encoding.GetByteCount(Char* chars, Int32 count, EncoderNLS baseEncoder)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at System.Text.UTF8Encoding.GetByteCount(String chars)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at System.IO.BinaryWriter.Write(String value)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at Microsoft.Build.BackEnd.NodePacketTranslator.NodePacketWriteTranslator.TranslateDictionary(Dictionary`2& dictionary, IEqualityComparer`1 comparer)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at Microsoft.Build.Execution.BuildParameters.Microsoft.Build.BackEnd.INodePacketTranslatable.Translate(INodePacketTranslator translator)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at Microsoft.Build.BackEnd.NodePacketTranslator.NodePacketWriteTranslator.Translate[T](T& value, NodePacketValueFactory`1 factory)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at Microsoft.Build.BackEnd.NodeConfiguration.Translate(INodePacketTranslator translator)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.NodeContext.SendData(INodePacket packet)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at Microsoft.Build.BackEnd.NodeProviderOutOfProc.CreateNode(Int32 nodeId, INodePacketFactory factory, NodeConfiguration configuration)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at Microsoft.Build.BackEnd.NodeManager.AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at Microsoft.Build.BackEnd.NodeManager.CreateNode(NodeConfiguration configuration, NodeAffinity nodeAffinity)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(IEnumerable`1 responses)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32 node, BuildRequestBlocker blocker)
1>C:\Users\Slench\documents\visual studio 2013\Projects\ConsoleMenu\ConsoleMenu\ConsoleMenu.csproj : error MSB4014: at Microsoft.Build.Execution.BuildManager.IssueRequestToScheduler(BuildSubmission submission, Boolean allowMainThreadBuild, BuildRequestBlocker blocker)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
我看了几个地方,他们都主要建议我重新启动VisualStudio。然而,这不起作用;错误仍然存在。
如何解决这个问题?
我正在使用VS 2013社区版,运行Windows 8.1
答案 0 :(得分:8)
我已经看过几次异常追踪了。易于google,只需查询“msbuild System.Text.EncoderFallbackException”。 This blog post被认为是典型的答案。
这是一个环境问题,由具有损坏的PATH环境变量的计算机引起。这种情况经常发生,它是一个讨厌的全局变量,经常被破坏的安装程序破坏。
您使用控制面板&gt;修复它系统&gt;高级&gt;环境变量&gt; <系统变量>路径。单击“编辑”,将故意小文本框的内容复制到文本编辑器中。清理它,删除明显错误的路径和坏字符。预计通常会出现瘫痪,没有囚犯。将其粘贴回文本框中。注销+登录以确保新值对所有进程都有效。