.NET Core 1.0.4 命令行最简示例
如果选择dotnet-dev-win-x64.1.0.4.exe
dotnet new console -o hwapp
cd hwapp
dotnet restore
dotnet run
如果执行错误,请指定net版本4.6.1和指定编译环境windows10 64位
hwapp.csproj文件
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net461</TargetFramework>
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
</PropertyGroup>
</Project>