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| |---------|:------|:------|:------:|:------:|:------:| |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|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 RC2 and .NET Core SDK Preview 1.
Configurations are as below:
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment:
OS Name: ubuntu
OS Version: 14.04
OS Platform: Linux
RID: ubuntu.14.04-x64
- Install the dotnet core RC2 from https://www.microsoft.com/net/core
- Clone this repo
- Navigate to the project folder you prefer
- Make sure you have read the Readme.md file.
- run
dotnet restore
in the folder - run
dotnet run