Is it possible to retrieve the published code from an Azure Cloud Service.
When I changed my TFS mapping, TFS wiped out the code I had written on my local machine. It converted the .csproj and .ccprof files to csproj.user and .ccproj.user files. It also removed the solution. I havn't checked anything in since February so checking out loses 3 months worth of code. I have access to some of the views, scripts, and .css files but all .cs files are gone. I have tried the following.
- Remote desktop into the published site. -Works but all .cs files are stored as a .dll and code is lost and "obfuscated" when decompling.
- Wondershare data recovery.
- Some files are found but often in an unreadable format. Many are still missing.
- Getting the blob in the vsdeploy folder in Azure Storage.
- I have the blob. Now what? Is there a way to convert that back into a readable project?
- Using "Open from Azure Website" extension to load the project into visual
studio by the publishsettings file in Azure Portal.
- This works great for app services, but I cannot find any existence of a .PublishSettings file in Azure. The Get-AzurePublishSettingsFile call from Windows Powershell doesn't not download the correct file. When using the extension I get a "Object not set to an instance of an object" exception. I have tested the extension with an app service and it works perfectly.