0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【保険商品管理システムの開発】環境構築

Posted at

✅ 1.NET SDK のインストール

  1. .NET 公式サイトにアクセス
  2. 「.NET 8(LTS)」の「macOS」用インストーラをダウンロードして実行
dotnet --version

例: 8.0.100 と表示されれば成功

✅ 2. IDEのインストール(Visual Studio)

  1. Visual Studio Code公式サイト から VS Code をダウンロード
  2. 拡張機能で「C# Dev Kit」「C#」をインストール

✅ 3. プロジェクト作成

dotnet new webapi -n InsuranceProductManager
cd InsuranceProductManager
code .

実行結果

kerumatomomitsu@kerumatomomitsunoMacBook-Air ~ % dotnet new webapi -n InsuranceProductManager

.NET 9.0 へようこそ!
---------------------
SDK バージョン: 9.0.301

テレメトリ
---------
.NET ツールは、エクスペリエンスの向上のために利用状況データを収集します。データは Microsoft によって収集され、コミュニティと共有されます。テレメトリをオプトアウトするには、好みのシェルを使用して、DOTNET_CLI_TELEMETRY_OPTOUT 環境変数を '1' または 'true' に設定できます。

.NET CLI ツールのテレメトリの詳細をご覧ください: https://aka.ms/dotnet-cli-telemetry

----------------
ASP.NET Core HTTPS 開発証明書をインストールしました。
証明書を信頼するには、'dotnet dev-certs https --trust' を実行します
HTTPS の詳細情報: https://aka.ms/dotnet-https

----------------
最初のアプリを作成するには、https://aka.ms/dotnet-hello-world を参照してください
最新情報については、https://aka.ms/dotnet-whats-new を参照してください
ドキュメントを探すには、https://aka.ms/dotnet-docs を参照してください
GitHub で問題の報告とソースの検索を行うには、https://github.com/dotnet/core を参照してください
'dotnet --help' を使用して使用可能なコマンドを確認するか、https://aka.ms/dotnet-cli にアクセスしてください
--------------------------------------------------------------------------------------
テンプレート "ASP.NET Core Web API" が正常に作成されました。

作成後の操作を処理しています...
/Users/kerumatomomitsu/InsuranceProductManager/InsuranceProductManager.csproj を復元しています:
正常に復元されました。

✅ 4. 設定ファイルの修正

"profiles": {
  "InsuranceProductManager": {
    "commandName": "Project",
    "dotnetRunMessages": true,
    "launchBrowser": true,
    "applicationUrl": "https://localhost:5001;http://localhost:5000",
    "environmentVariables": {
      "ASPNETCORE_ENVIRONMENT": "Development"
    }
  }
}

✅ 5. HTTPS エラーを回避(macOS)

dotnet dev-certs https --clean
dotnet dev-certs https --trust

✅ 6. ローカルホストに接続

ターミナルで下記を実行。

dotnet run

https://localhost:7252/weatherforecast に接続して下記が表示されたので成功。

スクリーンショット 2025-08-03 10.33.47.png

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?