dotnetcore-samples icon indicating copy to clipboard operation
dotnetcore-samples copied to clipboard

dotnet core sample projects

DotNet Core Samples

This repository contains some workable sample projects which can be used for learning how to develop cross platform applications using .NET Core.

These sammples align to .Net Core 1.0 and .NET CLI 1.0.0-preview2-003121.

Note:

If you get the below error message when you run the application:

Expected to load libhostpolicy.dylib from [/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0-xxxxx]
This may be because the targeted framework ["Microsoft.NETCore.App": "1.0.0-xxxxx"] was not found.

You need find the runtime config file (*.runtimeconfig.json) in the directory bin/Debug/netcoreapp1.0, and then replace the version number with the version of your current installed dotnet cli:

{
    "runtimeOptions": {
        "framework": {
            "name": "Microsoft.NETCore.App",
            "version": "1.0.0-rc2-3002464"
        }
    }
}

Referernces:

  1. ASP.NET CLI Samples
  2. ASP.NET Music Store
  3. ASP.NET VNext Samples of Schr3da
  4. ASP.NET Core Identity Samples