Azure SDK在托管的VS2017 VSTS Build Agent上不可用? [英] Azure SDK not available on Hosted VS2017 VSTS Build Agent?

查看:101
本文介绍了Azure SDK在托管的VS2017 VSTS Build Agent上不可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的.Net项目正在使用VS 2017,并且需要Azure SDK中的 Azure Storage Emulator 来运行单元测试。
我们的CI / CD在VSTS中运行。我们想在VSTS代理池中使用某些托管的构建代理。我们遇到了两个问题。
首先,根据官方文件,托管VS2017 似乎未安装Azure SDK
其次,在运行命令 C:\Program Files(x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe start 时,它失败并显示 Error :无法启动存储模拟器

Our .Net projects are using VS 2017, and requires Azure Storage Emulator in Azure SDK to run unit tests. Our CI/CD is running in VSTS. We want to use some hosted build agent in VSTS agent pools. There are two issues we encountered. Firstly, according to official document, Hosted VS2017 seems don't have Azure SDK installed. Secondly, when running command C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe start, it failed with Error: Unable to start the storage emulator.

推荐答案

我一直在托管的VS2017上运行Azure存储模拟器

I've been running the Azure Storage Emulator on a VS2017 hosted build agent for a long time now.

诀窍是先初始化SQL LocalDB(仿真器使用它),然后启动仿真器。您可以通过运行以下命令行任务来执行此操作:

The trick is to initialise SQL LocalDB first (the emulator uses it), and then start the emulator. You can do this with a command line task that runs:

sqllocaldb create MSSQLLocalDB
sqllocaldb start MSSQLLocalDB
sqllocaldb info MSSQLLocalDB

"C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start

这篇关于Azure SDK在托管的VS2017 VSTS Build Agent上不可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆