.NET Core 初體驗
RojerChen.2016.07.08
依據官網說明,先安裝 .NET Core SDK for Windows ,編輯器就看要用 VS 或是 Visual Studio Code ,先安裝 SDK。
安裝完畢後,抓取 github 上面的 sample,sample 如下
project.json
{ "version": "1.0.0-*", "buildOptions": { "debugType": "portable", "emitEntryPoint": true }, "dependencies": {}, "frameworks": { "netcoreapp1.0": { "dependencies": { "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0" } }, "imports": "dnxcore50" } } }
program.cs
using System; namespace HelloWorldSample { public static class Program { public static void Main() { Console.WriteLine("Hello World!"); } } }
0 意見:
張貼留言