1

我正在尝试调试为什么会出现错误

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.

任何人都可以建议如何解决吗?

4

1 回答 1

1

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

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

"Version": "0.0",
于 2021-03-06T15:41:30.347 回答