I have some problems with Azure Compute Emulator not restarting properly. To resolve this I want to add csrun /devfabric:stop
call to a pre-build step in Visual Studio solution.
The problem is csrun.exe is located in C:\Program Files\Windows Azure SDK\v1.4\bin
on my machine and that path is not on the %PATH%
directories list. I don't want to hardcode that path in my solution.
Is there some way to deduce the path like using some environment variable or something similar?
1 Answer. Azure SDK has two emulators namely Compute Emulator and Storage Emulator. These emulators are used by developers to operate the cloud applications on the local machine. Compute Emulator reproduces the computing environment.
The solution is to go to C:\Windows\Installer and selecting Uninstall from the context menu on every .
You can read the Azure SDK path from the registry by version. The last part of the path is the version ... Your code can either be set to a version or you can iterate over the v keys finding the latest. I would recommend having a constant for the version you support and as you take a new SDK as a pre-req.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\ServiceHosting\v1.4
There's an "InstallPath" key under those paths.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With