简体   繁体   中英

Unable to create publish profile - Azure

I created a ASP.Net Web Application (MVC) to publish it onto a Azure VM. However, I am getting the following error.

在此处输入图像描述

In the folder structure given, there isn't a file called PublishProfiles\AppService.pubxml created. Can someone help me solve this?

I was having the same issue on Visual Studio 2022 when trying to publish a function. I installed the "Azure development" workload and updated to version 17.1.1 and the problem went away.

Steps that I took...

Download the Visual Studio installer from Microsoft https://visualstudio.microsoft.com/downloads/ or search for it on your computer

If there is an update available then click "Update"

在此处输入图像描述

When updated, click "Modify" to show what components are installed.

在此处输入图像描述

Ensure that "Azure development" workload is checked then click "Modify" in the bottom right corner.

在此处输入图像描述

Try to login with the same account on Visual Studio and publish profile that works for me.

截图

Check if there's any important component missing from your Visual Studio Installer, in my case I needed to have the Azure Webjob component to be able to create a publish profile.

This is an error message that gives you no insight of what is going on.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM