2

我们在 VSTS 上有 .Net 项目构建定义,它使用 Azure 存储模拟器来运行测试。我们希望使用 Hosted 2017 代理进行构建定义。

我看到了这个问题(Azure SDK not available on Hosted VS2017 VSTS Build Agent)和我可以使用命令“ C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe init /server (localdb )\MSSQLLocalDb "来初始化 Azure 存储模拟器。

但是,当我尝试使用命令“ C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe start ”启动 Azure Storage Emulator 时,它失败并出现Error: Unable to start the storage emulator

有没有办法在 VSTS Hosted 2017 代理上启动 Azure 存储模拟器?

命令和错误

4

2 回答 2

0

VSTS 托管代理作为服务运行,您无法启动存储模拟器(初始化正常)。

相关线程:VSO 托管构建控制器 - 是否支持 Azure 存储模拟器?

更新:

根据测试,现在可以在 Hosted VS2017 agent 上启动 Azure Storage Emulator。

于 2017-09-22T05:57:43.987 回答
0

现在是可能的。

查看另一个答案:

https://stackoverflow.com/a/51726177/1830814

这里有更多信息:

https://developercommunity.visualstudio.com/content/problem/238481/hosted-visual-studio-2017-errorno-available-sql-in.html#

于 2020-05-07T21:21:32.390 回答