How to debug an Azure cloud service on a local machine using Emulator Express - visual-studio-2017

I have been able to run Azure cloud services locally before, but Emulator Express is not available anymore.
The same problem appears on two Windows computers.
How to reproduce:
Download https://code.msdn.microsoft.com/Simple-Azure-Cloud-Service-e01df2e4 and unzip it.
Open the project in Visual Studio 2017 v15.9.6
Follow https://learn.microsoft.com/en-us/visualstudio/azure/vs-azure-tools-emulator-express-debug-run?view=vs-2017 to verify that IIS Express and Emulator Express are selected
Try to run the Azure Could Service in Emulator Express.
In step 4, I only have this option in the toolbar:
If I use that, my Frontend role starts, but the Worker Role does not start.
The same problem exists for one of my own Cloud Service projects.
Installed products in Visual Studio: https://gist.github.com/mfalkvidd/78114c37e16d793c26a44431dad2795d

Related

Visual Studio 2017 Remote Debugging of Azure App Service Not Working

I created a clean Web API .NET Core project and published it, using the default settings, to an Azure App Service, also created using all the defaults. Then I started up Visual Studio 2017 in Administrator mode and tried to attach the debugger. I got:
Unable to find a process called dotnet with arguments
.\MyCompany.WebApi.dll. The process may still be
starting, please try again.
What is wrong? Has anyone successfully debugged a App Service with .Net Core remotely. Seems like kind of a limitation of the environment if not.
EDIT: I upgraded to Visual Studio 2019 and was able to remotely debug processes running in Azure. There seems to be a critical failure with 2017 and Microsoft can't support it.

MSBuild doesn't create a package for a Web Service project?

We're running the following command for building and packaging Visual Studio Solutions:
MSBuild.exe *slnfile* /p:DeployOnBuild=true /p:CreatePackageOnPublish=true
It appears this creates packages for Web Applications but not Web Services. I don't even see a "Publish" option in Visual Studio for Web Service projects. How do I package these for deployment?
It turns out the developer didn't create a Web Application project, they created a simple empty C# project. I converted the project to Web Application and it works.

Can't install Azure Functions and Web Jobs extension

I have been trying to install the Azure Functions and Web Jobs extension, however installation fails. Looking through the error log it appears that the piece that isn't working is this:
Install Error : System.InvalidOperationException: Installation of Azure Functions and Web Jobs Tools failed. To install this extension please install at least one of the following components: Microsoft Azure WebJobs Tools
I think that the problem is that it is looking for itself with the wrong name (Microsoft Azure WebJobs Tools instead of Microsoft Azure Web Jobs Tools). Is there any way to fix this?
Just had the same problem and the error was not very helpful :( Fixed it by installing the Azure Development "workload" from the Visual Studio Installer. After running the installer, you can choose to modify the installation and add this. It will actually come with the extension you're trying to install, oddly enough, but it will not be the latest version of it.
Here is an image which I hope helps:

Building Visual Studio project on Windows Server 2012

I have set up a CI server for our .NET projects. To build those projects I want to use the Visual Studio executable devenv.exe.
This worked out perfectly during the "evaluation period". Now these 30 days are over, to keep using Visual Studio on my Desktop computer, I just updated my license with one mouseclick. Doing this on the server allows me to build using the GUI, but when running devenv.exe programatically with the required parameters, I am receiving an error that the evaluation license expired, even though I renewed it.
I have already tried a clean reinstall, which did not fix the issue for me. Visual Studio on the server is connected to the same account I am successfully using on my Desktop PC.
Is there a known fix for this issue?
Figured it out. The license is somehow related to the user that launches Visual Studio. So to to automatically build projects with devenv.exe, the building agent has to run under the same user account, that installed an launched Visual Studio.

Associate Azure WebJobs in Visual Studio 2013

In the Windows Azure build keynote (2014-04-03) they demo Azure WebJobs. You can clearly see how they associate the current WebJob with the ASP.Net website application. However, I don't have this option available in Visual Studio 2013. Does it come with the new Web Features in Visual Studio 2013 Update 2 RC? I haven't installed it (still RC...) but it's clearly not in the release notes. I've installed the latest Windows Azure SDK for .NET (VS 2013) - 2.3.
In the video you can see the association in action:
Update:
After installing Visual Studio 2013 Update 2 RC I still don't see the option
Just found this awesome extension that I was looking for:
With this extension you can right click on a web project in Visual Studio and associate a console project as a WebJob. After doing that when you publish the web project the webjob project will be published into the correct location in your Azure Web Site
http://visualstudiogallery.msdn.microsoft.com/f4824551-2660-4afa-aba1-1fcc1673c3d0