更新时间:2023-12-03 16:40:22
尽管这里的所有答案都与此相反,但我已经在 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 SDKsAzureStorage EmulatorAzureStorageEmulator.exe" start