Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I deduce path to Azure SDK csrun.exe conveniently?

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?

like image 410
sharptooth Avatar asked Oct 04 '11 12:10

sharptooth


People also ask

Which emulator is installed with the Azure SDK?

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.

How do I uninstall Azure SDK?

The solution is to go to C:\Windows\Installer and selecting Uninstall from the context menu on every .


1 Answers

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.

like image 88
bryanmac Avatar answered Sep 30 '22 10:09

bryanmac