【问题标题】:TRACKER : error TRK0005: Failed to locate: "xsd.exe". The system cannot find the file specified跟踪器:错误 TRK0005:未能找到:“xsd.exe”。该系统找不到指定的文件
【发布时间】:2018-02-13 11:42:37
【问题描述】:

为了将带有 VisualGDB 的 Microsoft Visual Studio 2015 (VS2015) 项目转换为不带 VisualGDB 的 VS2017,我收到以下错误:

注意:VS2017 包含用于远程构建/调试的本机功能。

跟踪器:错误 TRK0005:未能找到:“xsd.exe”。系统找不到指定的文件。

为什么会发生这种情况以及如何解决?


更多详情

用VS2017打开项目并进入属性,远程构建所需的大部分设置都丢失了。我尝试添加/修改 .vcxproj xml 以匹配似乎可以远程正确构建的新空项目。

在这一步之后,项目的属性窗口看起来非常相似,只是在不工作的项目中多了一个XML Data generator Tool 部分。

构建项目时,显示如下:

1>------ Rebuild All started: Project: project, Configuration: Debug x64 ------
1>Cleaning remote project directory
1>TRACKER : error TRK0005: Failed to locate: "xsd.exe". The system cannot find the file specified.
1>
1>
1>Done building project "project.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

已编辑:似乎与包含以下来源有关:

<Xsd Include="C:\Users\...\xml_file.xsd" />

【问题讨论】:

  • 提示一下这个 xsd.exe 的使用位置已经很棒了

标签: c++ visual-studio visual-studio-2017 visualgdb


【解决方案1】:

我刚刚遇到了同样的问题,并通过以下两个步骤的组合解决了它:

  • 在我的文件系统上定位 xsd.exe。如果它不存在(尽管在安装 Visual Studio 时应该存在),this answer 可能会有所帮助。

  • 将其所在的路径添加到“可执行目录”variable in the properties of the Visual Studio project。 (就我个人而言,我没有安装 Visual Studio,所以我通过文本编辑器在 .vcxproj 文件中的 &lt;IncludePath&gt; 旁边添加了 &lt;ExecutablePath&gt; 属性)

【讨论】:

    猜你喜欢
    • 2018-04-25
    • 2016-01-15
    • 1970-01-01
    • 1970-01-01
    • 2013-12-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多