.NET Core 1.0.4 命令行最简示例

来源:互联网 发布:虚代理 java 编辑:程序博客网 时间:2024/06/15 17:53

.NET Core 1.0.4 命令行最简示例

  • Get Started with .NET Core

安装.NET Core

如果选择dotnet-dev-win-x64.1.0.4.exe

dotnet new console -o hwappcd hwappdotnet restoredotnet 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>