Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 2.65 KB

Readme.md

File metadata and controls

74 lines (56 loc) · 2.65 KB

.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| |---------|:------|:------|:------:|:------:|:------:| |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:

Windows

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

Mac OS

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

Ubuntu

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

How to run

  1. Install the dotnet core RC2 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