DSInit has disappeared on upgrading Azure SDK to 2.3

て烟熏妆下的殇ゞ 提交于 2020-01-06 08:27:11

问题


I recently upgraded two separate development environments to the new Azure SDK 2.3 tools.

The storage emulator did not initialise as expected. So I go to run DSinit to initialise the database and it's gone! It's like someone has stolen it. I have searched the whole disk and it's not there. So now I have a storage emulator that will not initialise and the tool to repair it has somehow disappeared when I upgraded from Azure SDK 2.2 to 2.3.

The question is, Where can I get DSInit. and Is this just me?

I have tried uninstalling and reinstalling both SDK's.


回答1:


It looks like DSInit is no longer the way to start the emulator.

The options I can see is to use CSRun from an Azure SDK Command Prompt

    csrun /devstore:start

This appears to have been replaced by WAStorageEmulator.exe that can be found at %ProgramFiles(x86)%\Microsoft SDKs\Windows Azure\Storage Emulator. From there, WAStorageEmulator.exe can be run to init, start and stop the emulator.

WAStorageEmulator.exe init            : Initialize the emulator database and configuration.
WAStorageEmulator.exe start           : Start the emulator.
WAStorageEmulator.exe stop            : Stop the emulator.
WAStorageEmulator.exe status          : Get current emulator status.
WAStorageEmulator.exe clear           : Delete all data in the emulator.
WAStorageEmulator.exe help [command]  : Show general or command-specific help.

There is also an icon on the Start Menu/Screen that runs WAStorageEmulator.exe for you in a command prompt.




回答2:


DSInit is replaced by WAStorageEmulator. You can run the following commands in Windows Azure Command Prompt - 2.3:

Change the directory:

cd C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator

Running the utility:

WAStorageEmulator init /sqlInstance .\sqlexpress

Hope this helps!



来源:https://stackoverflow.com/questions/22980336/dsinit-has-disappeared-on-upgrading-azure-sdk-to-2-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!