Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
You’re trying to use Azure “Publish” from a project that Visual Studio doesn’t treat as deployable to Azure. The project shown is net10.0-android, which is a mobile app, and those don’t get published to Azure App Service directly. Azure publishing in Visual Studio is designed for server-side projects like ASP.NET Core web apps or APIs. A mobile app is something you build into an APK or AAB and distribute through app stores or side-load, not deploy to Azure.
If your goal is to use Azure with this app, then what you actually need is a backend hosted on Azure. That means creating or using an ASP.NET Core Web API project and publishing that instead. The mobile app then calls that API over HTTP.
If you already have a backend project in the solution, right-click that project (not the Android one) and use Publish. If you don’t have one, create it with:
dotnet new webapi -n MyApi
Then move your data access code into that API and expose endpoints like:
[HttpGet("sales")]
public async Task<IEnumerable<Sale>> GetSales()
{
return await _repo.GetSales();
}
After that, publish the API to Azure App Service, and point your Android app to the API URL.
If instead you’re directly using Azure services like Blob Storage from the app, then there is nothing to publish. You just configure the SDK with credentials and endpoints, but you need to be careful not to expose secrets in a mobile app.
Also note that your solution shows many warnings. Even if they’re not the root cause, they can break builds and publishing indirectly. Fix at least the XML comment errors like:
/// The character(s) '<' cannot be used here
Those come from malformed XML comments and should be cleaned up.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin