LoginSignup
2
3

More than 5 years have passed since last update.

.NET Coreで、ローカル Webサーバーをさくっと立ち上げる

Posted at

.NET Coreを利用すると、さくっとローカルWebサーバーを起動することができます。

まずは、.NET Coreをダウンロードします。

PowerShell(またはコマンドライン)を起動し、次のようにして新規プロジェクトを作成します。

dotnet new webApp -o myproject
cd myproject

そして、SSLを有効にします。

dotnet dev-certs https --trust

後は、サーバーを起動しましょう。

dotnet run

これで、https://localhost:5001または、 http://localhost:5000でアクセスすることができます。

2
3
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
2
3