1
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?

Visual Studio CodeでC#

1
Last updated at Posted at 2026-09-03

まずはVSCodeのインストール

Windows Storeからインストール

image.png

言語を変える

  • Ctrl + Shift + P で"display"をすると"Configure Display Language"できる

image.png

拡張機能 C# Dev Kitをインストール

image.png

プロジェクトを作成

image.png

SDKが無いと言われたので
image.png

インストール
image.png
image.png

ソリューションの種類を選択

コンソールアプリを選択
image.png

image.png

lanuch.jsonなどを生成

Ctrl+Shift+P でビルド用及びデバッグ用の資産を生成する
image.png
image.png

「いいえ」だとlauch.jsonとtasks.jsonが生成される

コマンドラインのライブラリをインストール

image.png
image.png
image.png

発行(publish)

1つのexeファイルにまとめる

dotnet publish -p:PublishSingleFile=true --self-contained false

この辺にできる
image.png

1
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
1
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?