Azure Publish Asp.net core 5.0 hosted web assembly ( VS 2019)

Chandra Mohan 461 Reputation points
2020-12-06T13:12:25.023+00:00

I've created a new Asp.NET Core 5.0 Blazor web assembly hosted on Asp.net core server. Publishing the app to Azure is taking longer times. I notice lots of dll's getting copied/uploaded in the build output view every time the app is published. Could you please help in resolving this issue.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,612 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,159 questions
0 comments No comments
{count} votes

Accepted answer
  1. Chandra Mohan 461 Reputation points
    2020-12-07T13:01:55.037+00:00

    I've repaired the visual studio community 2019 and the problem disappeared on its own.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Michael Washington 911 Reputation points MVP
    2020-12-06T16:39:15.483+00:00

    1) Ensure that your Azure App Service is set to .NET 5

    45503-image.png

    45484-image.png

    Then when publishing, ensure that you are not using "self-contained". You need to use "Framework-dependent"

    45474-image.png

    2 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.