LoginSignup
4
2

More than 3 years have passed since last update.

.NETCore3.0がリリースされたのでVisualStudio2019からBlazorを作成してAzureにアップしてみる

Last updated at Posted at 2019-09-28

はじめに

.NET Core 3.0がリリースされたので、プレビュー版ではないVisual Studio 2019からBlazorAzureにアップできるか試してみた。

環境

  1. Visual Studio 2019 Community Version 16.3.0 010.png

ちなみに、Azure側はまだ.NET Core 3.0をサポートしていない模様。
008.png

Blazorで試すテンプレートについて

今回はBlazorサーバーアプリBlazor WebAssembly Appを試す。
001.png

Azure側の環境

BlazorサーバーアプリBlazor WebAssembly Appともにリソースグループは新規作成で作り、ホスティングプランは日本に変更して作成する。
002.png
この辺りは任意で。
003.png

Blazorサーバーアプリ編

新規作成でBlazorサーバーアプリを選択し、何もせずそのまま発行まで進むと、警告が出て、無理矢理デプロイするとエラーになってしまった。

004.png

回避策

今まで同様、配置モードを自己完結にすれば動作するようだ。
005.png

実際に動いた画面
006.png

Blazor WebAssembly App編

特にエラーなくアップできたが、こちらはターゲットフレームワークがnetstandard2.0になっている(前から)

99.png

これでプレビュー版が削除できる!

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2