Repository following the blog post about starting with ASP.NET Core on Linux.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
Controllers
Data
Models
Services
Views
wwwroot
.bowerrc
.gitignore
Program.cs
README.md
Startup.cs
appsettings.json
bower.json
gulpfile.js
package.json
project.json
web.config

README.md

Step-by-step .NET Core on Linux

These are the simple steps followed to make a pet project with .NET Core on Linux.

INSTALLATION SETUP WITH SQLITE

  • Install https://www.microsoft.com/net/core
  • Install Visual Studio Code https://code.visualstudio.com/
  • Create project (suggest installing a different ef package or .net core 1.0 to run ef database.)
    • mkdir DotNetCoreWeb && cd DotNetCoreWeb
    • dotnet new -t web
    • dotnet restore
    • (install client-side dependencies and js minification tools) Install Node.js, bower install && npm install
    • dotnet ef database update
    • dotnet run
  • Add a Todo class
    • Add Models\Todo.cs
    • Add DbSet to ApplicationContext
    • run "dotnet ef migrations add Todo1"
    • run "dotnet ef database update"
  • Add a TodoController

MIGRATING TO MYSQL WITH POMELO DRIVER

  • Regenerate migrations (at least Todo1).

PUBLISHING IN LINUX