.NET Core常用配置檔案示例

FrankYou發表於2016-05-18

.NET Core相關地址:

1、官網:https://www.microsoft.com/net

2、.NET Core:http://dotnet.github.io/
3、Getting Started:http://dotnet.github.io/getting-started/#/windows
4、.NET Core SDK下載(包含.NET Core Runtime和命令列工具):https://github.com/dotnet/cli

5、ASP.NET Core官方文件:https://docs.asp.net/en/latest/

 

NuGet.config (應用程式所使用的NuGet包所在站點地址)

<?xml version="1.0" encoding="utf-8"?>
<configuration>
     <packageSources>
         <add key="RC2" value="https://www.myget.org/aspnetrc2/api/v3/index.json"/>
     </packageSources>
</configuration>

 

Project.json

{
     "version":"1.0.0",
     "buildOptions":{
         "emitEntryPoint":true
     },
     "dependencies":{
         "Microsoft.NETCore.App":{
             "type":"platform",
             "version":"1.0.0-rc2-3002702"
         },
         "Microsoft.AspNetCore.Mvc":"1.0.0-rc2-final",
         "Microsoft.AspNetCore.Server.Kestrel":"1.0.0-rc2-final"
     },
     "frameworks":{
         "netcoreapp1.0":{
             "imports":"dnxcore50"
         }
     }
}

 

相關文章