.NET Core code samples
======================
This repository contains working examples using .NET Core, This is a work in progress, new samples will be added from time to time.
#Code samples list
|Id|Name|Description|Added Date|
|---------|:------|:------|:------:|:------:|:------:|
|14|EntityFramework|This project shows how to use Entity Framework in .net core.|27th September 2016|
|13|Thread-Process|This project shows how to get processes and threads in .net core.|19th June 2016|
|12|EmbeddedResource|This project show how to embed and read resources in .net core.|24th May 2016|
|11|Encodings|This project shows how the encodings are supported in .net core.|19th May 2016|
|10|Web-CustomBinding-WebListener(Win-ONLY)|This project shows how to bind to different/multiple hosts in web applications using WebListener. This example will **ONLY** run under Windows.|18th May 2016|
|9|Web-CustomBinding|This project shows how to bind more than one url in web applications using Kestrel.|18th May 2016|
|8|EnvironmentVariables|This project shows how enviroment variables are different between different platforms.|17th May 2016|
|7|SQLServer|This project shows how to connect to SQL Server in .net core.|16th May 2016|
|6|ConfigurationFile|This project shows how to use json/xml/ini configuration files in .net core.|15th May 2016|
|5|MultiPlatform|This project shows how to target multiple platforms when do publish.|13th May 2016|
|4|ASPNET-WebApi|This project shows how to create asp.net web api application in .net core.|13th May 2016|
|3|ASPNET-MVC|This project shows how to create asp.net MVC application in .net core.|13th May 2016|
|2|HelloWorld-Web|This project shows how to create a simple web application in .net core.|13th May 2016|
|1|[HelloWorld](https://github.com/XiaoFaye/netcore-samples/tree/master/code-samples/1.HelloWorld)|This project shows how to create the first hello world application in .net core.|13th May 2016|
All examples in this repos have been tested under Windows, Mac OS and Ubuntu using **.NET Core 1.0 and .NET Core SDK Preview 2**.
Configurations are as below:
Windows
-------------------
`Product Information:`
` Version: 1.0.0-preview2-003156`
` Commit Sha: 33dabee5d8`
`Runtime Environment:`
` OS Name: Windows`
` OS Version: 10.0.10586`
` OS Platform: Windows`
` RID: win10-x64`
Mac OS
-------------------
`Product Information:`
` Version: 1.0.0-preview2-003156`
` Commit Sha: 33dabee5d8`
`Runtime Environment:`
` OS Name: Mac OS X`
` OS Version: 10.11`
` OS Platform: Darwin`
` RID: osx.10.11-x64`
Ubuntu
-------------------
`Product Information:`
` Version: 1.0.0-preview2-003156`
` Commit Sha: 33dabee5d8`
`Runtime Environment:`
` OS Name: ubuntu`
` OS Version: 16.04`
` OS Platform: Linux`
` RID: ubuntu.16.04-x64`
## How to run
1. Install the dotnet core 1.0.3 from https://www.microsoft.com/net/core
2. Clone this repo
3. Navigate to the project folder you prefer
4. Make sure you have read the Readme.md file.
5. run `dotnet restore` in the folder
6. run `dotnet run`
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
以下为例子描述: 14 EntityFramework 13 Thread-Process 12 EmbeddedResource 11 Encodings 10 Web-CustomBinding-WebListener(Win-ONLY) 9 Web-CustomBinding 8 EnvironmentVariables 7 SQLServer 6 ConfigurationFile 5 MultiPlatform 4 ASPNET-WebApi 3 ASPNET-MVC 2 HelloWorld-Web 1 HelloWorld
资源推荐
资源详情
资源评论
收起资源包目录
netcore-samples.zip (68个子文件)
netcore-samples-master
License.md 1KB
Readme.md 3KB
code-samples
9.Web-CustomBinding
Program.cs 525B
project.json 325B
Startup.cs 380B
Readme.md 494B
5.MultiPlatform
Program.cs 202B
project.json 432B
Readme.md 328B
11.Encodings
Program.cs 12KB
project.json 321B
Readme.md 146B
6.ConfigurationFile
appsettings.xml 189B
Program.cs 1KB
project.json 588B
Readme.md 154B
appsettings.ini 99B
appsettings.json 154B
12.EmbeddedResource
Res3.docx 11KB
Res5.ICO 1KB
Res2.wav 480KB
Program.cs 994B
project.json 346B
Readme.md 154B
Res1.txt 23B
Res4.png 6KB
1.HelloWorld
Program.cs 188B
Projects.csproj 170B
Readme.md 109B
4.ASPNET-WebApi
Models
Project.cs 274B
Program.cs 362B
project.json 763B
Controllers
ProjectsController.cs 2KB
Startup.cs 566B
Readme.md 264B
14.EntityFramework
Models
Author.cs 210B
Book.cs 469B
Program.cs 362B
project.json 1KB
Controllers
HomeController.cs 1KB
Startup.cs 2KB
Readme.md 210B
Views
Home
Index.cshtml 249B
Data
DataContext.cs 517B
8.EnvironmentVariables
Program.cs 528B
project.json 273B
Readme.md 157B
2.HelloWorld-Web
Program.cs 600B
Startup.cs 1KB
Projects.csproj 311B
Readme.md 170B
13.Thread-Process
Program.cs 4KB
project.json 356B
Readme.md 152B
3.ASPNET-MVC
Program.cs 362B
project.json 660B
Controllers
HomeController.cs 231B
Startup.cs 887B
Readme.md 204B
Views
Home
Index.cshtml 249B
7.SQLServer
Program.cs 1KB
project.json 545B
Readme.md 204B
appsettings.json 150B
10.Web-CustomBinding-WebListener(Win-ONLY)
Program.cs 525B
project.json 378B
Startup.cs 380B
Readme.md 537B
共 68 条
- 1
资源评论
- chenanping2018-08-02骗资源,系统自带的例子。
lxzlll2010
- 粉丝: 1
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功