This question already has an answer here:
I'm migrating an web app from an Azure Cloud Services Web Role to Azure Websites. Websites can't find
Microsoft.WindowsAzure.ServiceRuntime and doesn't seem to like the Cloud Service helpers in general.
The app uses
RoleEnvironment.IsAvailable in a few places to behave differently online versus on a development computer. (We ran in development outside of the Web Role emulator for speed.)
Is there an equivalent property to
RoleEnvironment.IsAvailable for determining whether the app is running in the cloud?