Quantcast
Channel: C#タグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 9521

C# 勉強(2) VS code コンソールアプリビルド

$
0
0

1.プロジェクトファイル .csproj を開き、RuntimeIdentifiers に、対象ターゲットを指定する。

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
</PropertyGroup>

2.ビルド 

dotnet restore
dotnet build
dotnet publish -c Release -r win10-x64

3.実行
ビルド後に「exe」ファイルができているのでcmdから実行。


Viewing all articles
Browse latest Browse all 9521

Trending Articles