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から実行。