visual-studio-2010 - 错误 MSB4018 : The "<exec>" task failed unexpectedly

标签 visual-studio-2010 msbuild msbuild-task

我在 Visual Studio 2010 和 .net framework 4.0 中遇到此错误。
无法看到任何相关的解决方案,尤其是在 VS2010 中。
任何意见/建议请。

错误 MSB4018:“”任务意外失败
错误 MSB4018:System.FormatException:输入字符串的格式不正确。
错误 MSB4018:在 System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
错误 MSB4018:在 System.String.Format(IFormatProvider provider, String format, Object[] args)
...
...
...

最佳答案

这是我们代码中的一个错误。将在下一个版本中修复。请查看 here帮助解决它。

What a stupid bug. I have logged it for v4.0. The only workaround I can find short of removing IgnoreStandardErrorWarningFormat is to add a CustomWarningRegularExpression like .*{.* so that you get warnings instead of errors or a crash.

关于visual-studio-2010 - 错误 MSB4018 : The "<exec>" task failed unexpectedly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6705574/

相关文章:

c++ - 应用程序无法正确启动 (0xc000007b) Visual Studio C++

c++ - 将字符串转换为C++中的变体

c++ - VS 2017 构建工具失败,错误 MSB4019 : The imported project "D:\Microsoft.Cpp.Default.props" was not found

msbuild - 如何使用 MSBuild 'afterbuild' 任务编辑 .config 文件?

msbuild - 将值从 MSBuild 任务传递到 TFS 构建工作流程

visual-studio-2010 - 在 Visual Studio 中 checkin 当前文件的键盘快捷键

visual-studio-2010 - Visual Studio 资源粘贴栏

.net - MSBuild 与工作流

msbuild - 如何为我的 TransformXml 任务启用 "Treat Warnings as Errors"?

MSBuild 和 Webpack