Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Azure publish not working
Dear everyone,
Can you help to know how to remove this error for Azure?
Awaitng your reply,
Best Regards,
Fabrice
Azure App Service
-
Marcin Policht • 108.3K Reputation points • MVP • Volunteer Moderator
2026-04-02T16:52:13.55+00:00 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 MyApiThen 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 hereThose 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
-
Praneeth Maddali • 12,670 Reputation points • Microsoft External Staff • Moderator
2026-04-02T17:18:06.1266667+00:00 Thanks for posting the screenshots and the details I can see exactly what’s happening.
The two CS1570 warnings you’re seeing (in POSConverters.cs line 765) are just malformed XML documentation comments. They’re not errors and won’t stop a publish. You can quickly silence them by fixing the /// comments (escape any < or > characters) or by turning off XML documentation in the project properties if you don’t need it.
The real reason Azure Publish isn’t working is that you’re trying to publish the .NET MAUI Android project (POSJOSEA (net10.0-android)). Azure App Service is designed for web apps and APIs, not mobile apps. That’s why the Publish option looks broken or does nothing useful.
Quick fix:
- In Solution Explorer, expand your solution.
- Right-click the web/API project (the one that contains AzureBlobStorageService.cs, SaleRepository.cs, etc. — it should be a .NET web app or Azure Functions project, not the Android one).
- Choose Publish> Azure > Azure App Service (Windows/Linux) and follow the wizard.
Reference :
https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs1570
Kindly let us know if the above helps or you need further assistance on this issue.
Please "upvote" if the information helped you. This will help us and others in the community as well.
-
Praneeth Maddali • 12,670 Reputation points • Microsoft External Staff • Moderator
2026-04-02T17:22:58.8833333+00:00 Kindly let us know if the above helps or you need further assistance on this issue.
If you have any other questions, let me know in the "comments" and I would be happy to help you
-
Thibaut Fabrice • 0 Reputation points
2026-04-03T04:57:04.9233333+00:00 Awating your reply,
Best Regards,
Fabrice
-
Praneeth Maddali • 12,670 Reputation points • Microsoft External Staff • Moderator
2026-04-03T16:46:39.3666667+00:00 Thanks for the additional screenshots — that really helped clarify things.
The main issue is that your POSJOSEA.Api (the backend Web API) is currently excluded in the main project file. This is why you don’t see a separate web project in Solution Explorer and why the Azure Publish option isn’t behaving as expected.
Quick Solution:
- In Solution Explorer, click the Show All Files button at the top.
- Locate the POSJOSEA.Api folder.
- Right-click the POSJOSEA.Api.csproj file >Include in Project.
If the .csproj file isn’t visible on disk, right-click your solution >Add > Existing Project, then browse to the POSJOSEA.Api folder and select the .csproj file.
Once the API project appears:
- Right-click the POSJOSEA.Api project (not the MAUI one).
- Select Publish > Azure > Azure App Service (Windows/Linux).
- Follow the wizard to create or select your App Service and publish.
This should get your backend live on Azure.
Reference:
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-sln
After publishing the API, just update the base URL in your MAUI app (usually in a config file or settings class) to point to the new Azure URL.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "upvote" if the information helped you. This will help us and others in the community as well.
-
Praneeth Maddali • 12,670 Reputation points • Microsoft External Staff • Moderator
2026-04-06T16:00:39.87+00:00 Just following up to see if your issue has been resolved or if you had a chance to review my earlier comment?
-
Thibaut Fabrice • 0 Reputation points
2026-04-11T05:15:06.45+00:00 put a MAUI app on Azure when deploy on window machine
see github link; https://github.com/Thibaut501/POSJOSEA
-
Praneeth Maddali • 12,670 Reputation points • Microsoft External Staff • Moderator
2026-04-13T17:26:06.3866667+00:00 Hi @Thibaut Fabrice,
Thanks for sharing the GitHub link and clarifying your goal.
Quick answer: You cannot directly "put" a .NET MAUI app on Azure App Service, even for the Windows version. Azure App Service is meant for hosting web apps and APIs (server-side code), not client applications like MAUI.
For deploying the Windows version of your MAUI app:
The best way is to publish it as a folder or MSIX package directly from Visual Studio. This creates installable files you can distribute to Windows machines.
Steps:
- In Solution Explorer, select your MAUI project and change the target framework to net10.0-windows (or your Windows TFM).
- Right-click the project → Publish.
- Choose Folder publish profile.
- Select the settings (MSIX for packaged install or unpackaged executable) and publish.
This gives you ready-to-run files that you can copy to other Windows machines or share via download.
Reference :
https://learn.microsoft.com/en-us/dotnet/maui/windows/deployment/overview?view=net-maui-10.0
For the cloud/backend part:
Your MAUI app should connect to a Web API hosted on Azure. From the code I see in your repositories (PurchaseRepository, SaleRepository, etc.), you already have the data access layer — this should ideally live in a separate ASP.NET Core Web API project.
Once you have that API project:
- Right-click the API project > Publish > Azure >Azure App Service.
- After publishing, update the base URL in your MAUI app to point to the new Azure URL (e.g. https://yourapp.azurewebsites.net).
Reference :
If you include the POSJOSEA.Api (or similar) project in your solution and run into any issues during publish, feel free to share a screenshot of your Solution Explorer or the exact error.
If the answer is helpful, Please do click "Accept the answer” and
Yes, this can be beneficial to other community members.If you have any other questions, let me know in the "comments" and I would be happy to help you
-
Praneeth Maddali • 12,670 Reputation points • Microsoft External Staff • Moderator
2026-04-14T13:43:11.4133333+00:00 Just following up to see if your issue has been resolved or if you had a chance to review my earlier comment?
Sign in to comment