问题描述
我尝试编译的每个项目都会失败,并显示以下错误:
Every project I try to compile fails with the error below:
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.但是,这是行不通的.错误仍然存在.
I've looked several places, and they all mostly suggest that I restart VisualStudio. This however, does not work; the error persists.
我该如何解决这个问题?
How do I solve this problem?
我正在使用运行Windows 8.1的VS 2013 Community Edition
I'm using VS 2013 Community Edition, running Windows 8.1
推荐答案
我已经看到此异常回溯了几次.易于Google搜索,只需查询"msbuild System.Text.EncoderFallbackException"即可.此博文被视为规范答案afaik.
I've seen this exception trace back a few times. Easy to google, just query for "msbuild System.Text.EncoderFallbackException". This blog post is considered the canonical answer afaik.
这是一个环境问题,由具有损坏的PATH环境变量的计算机引起.这种情况经常发生,这是一个讨厌的全局变量,它经常被损坏的安装程序所破坏.
It is an environmental problem, caused by machines with a corrupt PATH environment variable. Which happens entirely too often, it is a nasty global variable that gets mangled too often by a broken installer.
您可以使用控制面板">系统">高级">环境变量">系统变量">路径"对其进行修复.单击编辑,然后将故意小的文本框的内容复制到文本编辑器中.清理它,删除明显错误的路径和错误的字符.在通常的混乱中有些瘫痪是可以预期的,不需要囚犯.将其粘贴回文本框中.注销并登录以确保新值对所有进程均有效.
You fix it with Control Panel > System > Advanced > Environment Variables > System variables > Path. Click Edit and copy the content of the intentionally small text box into a text editor. Clean it up, deleting obviously wrong paths and bad characters. Some paralysis at the usual mess is expected, take no prisoners. Paste it back into the text box. Logoff + Logon to ensure the new value is in effect for all processes.
这篇关于错误msb4014:由于内部故障,生成意外停止.重新启动VisualStudio不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!