1

出于某种原因,每当我尝试在 Visual Studio 中的 Task Runner 中运行任何东西(特别是使用 Web Compiler 的 compilerconfig 任务)时,我都会在 Task Runner 窗口中收到以下错误。

c:\users\william.yeack\documents\visual studio 2015\Projects\WebApplication1\WebApplication1> C:\Users\william.yeack\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\hh5zvap1.teh\WebCompiler.exe " c:\users\william.yeack\documents\visual studio 2015\Projects\WebApplication1\WebApplication1\compilerconfig.json" 未处理异常:System.IO.FileNotFoundException:无法加载文件或程序集 'Newtonsoft.Json,版本 = 9.0.0.0 , Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' 或其依赖项之一。该系统找不到指定的文件。在 WebCompiler.ConfigHandler.GetConfigs(String fileName) 在 WebCompiler.Program.GetConfigs(String configPath, String file) 在 WebCompiler.Program.Main(String[] args) 进程以代码 -532462766 终止。

当我创建一个全新的解决方案时,也会发生同样的错误。到底是怎么回事?

如果我手动将正确的 Newtonsoft.Json.dll 放入包含 WebCompiler.exe 的目录中,它就可以工作。那么为什么默认情况下它不工作呢?

4

0 回答 0