【问题标题】:Where to find TortoiseSvn Subwcrev Error code list?在哪里可以找到 TortoiseSvn Subwcrev 错误代码列表?
【发布时间】:2012-05-01 16:59:48
【问题描述】:

今天,我们的一位开发人员从我的 subwcrev 构建后命令中收到“错误 9009”。它在命令行中运行良好。修复它的是重新启动 Visual Studio。其他几个人发现更新 SVN 和/或确保它在路径上是罪魁祸首; http://forum.battleclinic.com/index.php?topic=42617.0;Building-problems http://www.autismcollaborative.org/wiki/index.php?title=疑难解答

我很惊讶没有看到 SubWcRev 的错误代码及其含义的列表。有谁知道在哪里可以找到那个?谢谢!

【问题讨论】:

    标签: tortoisesvn


    【解决方案1】:

    您可以在source中找到错误代码。

    // Internal error codes
    #define ERR_SYNTAX      1   // Syntax error
    #define ERR_FNF         2   // File/folder not found
    #define ERR_OPEN        3   // File open error
    #define ERR_ALLOC       4   // Memory allocation error
    #define ERR_READ        5   // File read/write/size error
    #define ERR_SVN_ERR     6   // SVN error
    // Documented error codes
    #define ERR_SVN_MODS    7   // Local mods found (-n)
    #define ERR_SVN_MIXED   8   // Mixed rev WC found (-m)
    #define ERR_OUT_EXISTS  9   // Output file already exists (-d)
    #define ERR_NOWC       10   // the path is not a working copy or part of one
    

    【讨论】:

    • 谢谢斯特凡!很抱歉我之前没有点击接受。我遇到了一些登录问题。
    【解决方案2】:

    从以下位置删除它:项目-->属性--->构建事件-->预构建事件命令行

    subwcrev "$(SolutionDir)." "$(ProjectDir)Properties\AssemblyInfoTemplate.cs" "$(ProjectDir)Properties\AssemblyInfo.cs" -f

    然后构建项目

    【讨论】:

    • 该问题说明了构建后事件。此外,没有迹象表明发布者正在使用 subwcrev 将 svn 值替换为程序集信息。最后,直截了当地删除命令几乎不是解决方案,充其量是一种解决方法。
    猜你喜欢
    • 2013-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-08
    相关资源
    最近更新 更多