【问题标题】:App version showing as 0.0 (0.0.0.1) during local debug本地调试期间应用程序版本显示为 0.0 (0.0.0.1)
【发布时间】:2021-06-04 02:27:44
【问题描述】:

我正在尝试调试我收到错误的原因

System.IndexOutOfRangeException: 索引超出了数组的边界 异常与 TestPlansAndSuitesMigrationContext

我已经下载了最新版本的代码,工具也是最新的。我已确保配置文件具有硬编码的更新“版本”,并且调试器指向它们。

但是,在调试期间,我得到以下提示我正在运行的版本是 0.0

[11:36:41 INF] Running with args: execute
[11:36:41 INF] OSVersion: Microsoft Windows NT 6.2.9200.0
[11:36:41 INF] Version: 0.0.0.1
[11:36:41 INF] Latest version detected as 11.9.33.0
[11:36:41 WRN] You are currently running version 0.0.0.1 and a newer version (11.9.33.0) is available. You should upgrade now using Chocolatey command 'choco upgrade vsts-sync-migrator' from the command line.
[11:36:41 DBG] Hosting starting
[11:36:42 INF] Application started. Press Ctrl+C to shut down.
[11:36:42 INF] Hosting environment: Production
[11:36:42 INF] Content root path: C:\Users\davidkin\source\repos\azure-devops-migration-tools-master\src\MigrationTools.ConsoleFull\bin\Debug\net472
[11:36:42 INF] Press Ctrl+C to shut down.
[11:36:42 DBG] Hosting started
[11:36:42 INF] Config Found, creating engine host
[11:36:42 ERR] The config version 11.9 does not match the current app version 0.0. There may be compatibility issues and we recommend that you generate a new default config and then transfer the settings across.

有人可以建议如何解决吗?

【问题讨论】:

    标签: azure-devops-migration-tools


    【解决方案1】:

    这是在 Visual Studio 中设置的版本。如果您要下载打包的工具,它将匹配 11.9 版。

    将您的 configuration.json 中的版本更新为 0.0:

    "Version": "0.0",
    

    【讨论】:

    • 嗨 Max,我确实将我的配置文件设置为 11.9,但我仍然遇到上述同样的问题
    • @Davy 您需要将配置文件更新为 0.0,而不是 11.9
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-02-05
    • 2012-04-18
    • 2012-09-09
    • 2011-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多