.NET Core常用配置文件示例

本文详细介绍了.NETCore开发的相关资源和NuGet配置方法,包括官方文档、SDK下载、ASP.NETCore官方文档及NuGet包站点地址。通过实践示例,展示了如何设置NuGet配置文件和创建一个简单的.NETCore项目。

.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"
         }
     }
}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值