且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Azure DevOps托管生成控制器-是否支持Azure存储模拟器?

更新时间:2023-12-03 16:44:28

尽管这里有所有相反的答案,但我已经在VS2017托管的构建代理上运行Azure存储模拟器已有一年多了.

Despite all the answers here to the contrary, I've been running the Azure Storage Emulator on a VS2017 hosted build agent for over a year.

诀窍是首先初始化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