mko
mko

Reputation: 7325

How to correctly deploy Blazor WebAssembly (hosted) app?

I am following instructions on how to deploy Blazor WebAssembly (HOSTED) as stated here

https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/blazor/?view=aspnetcore-3.1&tabs=visual-studio

It is unclear when I want to publish project do I run publish on a WebAssembly project or on Server project. Both projects under same solution do allow publish and publish directories are created separately, for example

/bin/Release/netstandard2.1/publish

and

/bin/Release/netcoreapp3.1/publish

Which directory out of these two should I deploy to production server?

Upvotes: 5

Views: 2594

Answers (1)

agua from mars
agua from mars

Reputation: 17404

Publish the server. It contains the app.

Upvotes: 5

Related Questions