├── src
├── Mvc.Basic
│ ├── wwwroot
│ │ ├── js
│ │ │ └── site.js
│ │ └── css
│ │ │ └── site.css
│ ├── Views
│ │ ├── _ViewStart.cshtml
│ │ ├── _ViewImports.cshtml
│ │ ├── Home
│ │ │ ├── Index.cshtml
│ │ │ └── About.cshtml
│ │ └── _Layout.cshtml
│ ├── .template.config
│ │ ├── icon.png
│ │ ├── vs-2017.3.host.json
│ │ └── template.json
│ ├── appsettings.json
│ ├── Mvc.Basic.csproj
│ ├── Models
│ │ └── Employee.cs
│ ├── Properties
│ │ └── launchSettings.json
│ ├── Controllers
│ │ └── HomeController.cs
│ └── Startup.cs
├── Static.Web
│ ├── wwwroot
│ │ ├── js
│ │ │ └── site.js
│ │ ├── index.html
│ │ ├── about.html
│ │ └── css
│ │ │ └── site.css
│ ├── .template.config
│ │ ├── icon.png
│ │ ├── vs-2017.3.host.json
│ │ └── template.json
│ ├── Static.Web.csproj
│ └── Properties
│ │ └── launchSettings.json
├── Mvc.Fast
│ ├── wwwroot
│ │ ├── js
│ │ │ └── all.js
│ │ ├── favicon.png
│ │ └── css
│ │ │ ├── all.css
│ │ │ └── abovethefold.css
│ ├── Views
│ │ ├── _ViewStart.cshtml
│ │ ├── _ViewImports.cshtml
│ │ ├── Home
│ │ │ ├── Index.cshtml
│ │ │ └── About.cshtml
│ │ └── _Layout.cshtml
│ ├── assets
│ │ ├── js
│ │ │ └── site.js
│ │ └── css
│ │ │ ├── belowthefold.css
│ │ │ └── abovethefold.css
│ ├── .template.config
│ │ ├── icon.png
│ │ ├── vs-2017.3.host.json
│ │ └── template.json
│ ├── package.json
│ ├── appsettings.json
│ ├── Models
│ │ └── Employee.cs
│ ├── appsettings.Development.json
│ ├── Mvc.Fast.csproj
│ ├── Properties
│ │ └── launchSettings.json
│ ├── Controllers
│ │ └── HomeController.cs
│ ├── gulpfile.js
│ └── Startup.cs
└── TemplatePackExtension
│ ├── template.pkgdef
│ ├── Resources
│ ├── icon.png
│ └── TemplatePackage.ico
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── source.extension.vsixmanifest
│ └── TemplatePackExtension.csproj
├── art
├── mvc-basic-pagespeed.png
├── mvc-basic-speedtest.png
├── mvc-fast-screenshot.png
├── new-project-dialog.png
├── mvc-basic-screenshot.png
└── static-web-screenshot.png
├── LICENSE
├── appveyor.yml
├── .gitattributes
├── readme.md
├── AspNetCoreTemplatePack.sln
└── .gitignore
/src/Mvc.Basic/wwwroot/js/site.js:
--------------------------------------------------------------------------------
1 | // Write your Javascript code.
--------------------------------------------------------------------------------
/src/Static.Web/wwwroot/js/site.js:
--------------------------------------------------------------------------------
1 | // Write your Javascript code.
--------------------------------------------------------------------------------
/src/Mvc.Fast/wwwroot/js/all.js:
--------------------------------------------------------------------------------
1 | !function(){"use strict";console.log("hello")}();
--------------------------------------------------------------------------------
/src/Mvc.Basic/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/src/Mvc.Fast/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/src/Mvc.Fast/assets/js/site.js:
--------------------------------------------------------------------------------
1 | (function () {
2 | "use strict";
3 |
4 | console.log("hello");
5 | })();
--------------------------------------------------------------------------------
/art/mvc-basic-pagespeed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/art/mvc-basic-pagespeed.png
--------------------------------------------------------------------------------
/art/mvc-basic-speedtest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/art/mvc-basic-speedtest.png
--------------------------------------------------------------------------------
/art/mvc-fast-screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/art/mvc-fast-screenshot.png
--------------------------------------------------------------------------------
/art/new-project-dialog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/art/new-project-dialog.png
--------------------------------------------------------------------------------
/art/mvc-basic-screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/art/mvc-basic-screenshot.png
--------------------------------------------------------------------------------
/art/static-web-screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/art/static-web-screenshot.png
--------------------------------------------------------------------------------
/src/Mvc.Fast/wwwroot/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/src/Mvc.Fast/wwwroot/favicon.png
--------------------------------------------------------------------------------
/src/Mvc.Fast/Views/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using Mvc.Fast
2 | @using Mvc.Fast.Models
3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4 |
--------------------------------------------------------------------------------
/src/TemplatePackExtension/template.pkgdef:
--------------------------------------------------------------------------------
1 | [$RootKey$\TemplateEngine\Templates\AspNetCoreTemplatePack\1.1]
2 | "InstalledPath"="$PackageFolder$"
--------------------------------------------------------------------------------
/src/Mvc.Basic/Views/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using Mvc.Basic
2 | @using Mvc.Basic.Models
3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4 |
--------------------------------------------------------------------------------
/src/Mvc.Basic/.template.config/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/src/Mvc.Basic/.template.config/icon.png
--------------------------------------------------------------------------------
/src/Mvc.Fast/.template.config/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/src/Mvc.Fast/.template.config/icon.png
--------------------------------------------------------------------------------
/src/Static.Web/.template.config/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/src/Static.Web/.template.config/icon.png
--------------------------------------------------------------------------------
/src/TemplatePackExtension/Resources/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/src/TemplatePackExtension/Resources/icon.png
--------------------------------------------------------------------------------
/src/TemplatePackExtension/Resources/TemplatePackage.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/AspNetCoreTemplatePack/HEAD/src/TemplatePackExtension/Resources/TemplatePackage.ico
--------------------------------------------------------------------------------
/src/Mvc.Basic/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "IncludeScopes": false,
4 | "LogLevel": {
5 | "Default": "Debug",
6 | "System": "Information",
7 | "Microsoft": "Information"
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/Mvc.Basic/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewData["Title"] = "Home Page";
3 | ViewData["Description"] = "The home page of my website";
4 | }
5 |
6 |
This is the index.cshtml
7 |
8 | @section Scripts {
9 | @*Insert any script tags for this page here*@
10 | }
--------------------------------------------------------------------------------
/src/Mvc.Fast/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewData["Title"] = "Home Page";
3 | ViewData["Description"] = "The home page of my website";
4 | }
5 |
6 | This is the index.cshtml
7 |
8 | @section Scripts {
9 | @*Insert any script tags for this page here*@
10 | }
--------------------------------------------------------------------------------
/src/Mvc.Fast/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0.0",
3 | "name": "mypackage",
4 | "private": true,
5 | "devDependencies": {
6 | "del": "2.2.2",
7 | "gulp": "3.9.1",
8 | "gulp-concat": "2.6.1",
9 | "gulp-csso": "3.0.0",
10 | "gulp-uglify": "3.0.0"
11 | }
12 | }
--------------------------------------------------------------------------------
/src/Mvc.Fast/wwwroot/css/all.css:
--------------------------------------------------------------------------------
1 | main{padding:2rem 0;display:block}.wrapper:after{content:"";display:block;height:50px}footer{height:50px}footer .container{border-top:1px solid #e1e1e1;padding-top:10px}@media only screen and (max-width:640px){header ul{text-align:center}header li:first-child{display:block}}
--------------------------------------------------------------------------------
/src/Mvc.Fast/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "IncludeScopes": false,
4 | "Debug": {
5 | "LogLevel": {
6 | "Default": "Warning"
7 | }
8 | },
9 | "Console": {
10 | "LogLevel": {
11 | "Default": "Warning"
12 | }
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/Static.Web/Static.Web.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp1.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/Static.Web/.template.config/vs-2017.3.host.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": {
3 | "text": "Static Web"
4 | },
5 | "description": {
6 | "text": "A template for static web projects"
7 | },
8 | "order": 1000,
9 | "icon": "icon.png",
10 | "learnMoreLink": "url",
11 | "uiFilters": [ "oneaspnet" ],
12 | "supportsDocker": true
13 | }
--------------------------------------------------------------------------------
/src/Mvc.Fast/.template.config/vs-2017.3.host.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": {
3 | "text": "MVC High Performance"
4 | },
5 | "description": {
6 | "text": "An ASP.NET Core template built with high performance best-practices"
7 | },
8 | "order": 1000,
9 | "icon": "icon.png",
10 | "learnMoreLink": "url",
11 | "uiFilters": [ "oneaspnet" ],
12 | "supportsDocker": true
13 | }
--------------------------------------------------------------------------------
/src/Mvc.Basic/.template.config/vs-2017.3.host.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": {
3 | "text": "MVC Basic"
4 | },
5 | "description": {
6 | "text": "A basic ASP.NET Core MVC template with no dependency 3rd-party JavaScript and CSS frameworks"
7 | },
8 | "order": 1000,
9 | "icon": "icon.png",
10 | "learnMoreLink": "url",
11 | "uiFilters": [ "oneaspnet" ],
12 | "supportsDocker": true
13 | }
--------------------------------------------------------------------------------
/src/Mvc.Basic/Mvc.Basic.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp2.0
5 | true
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/Mvc.Basic/Models/Employee.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 |
5 | namespace Mvc.Basic.Models
6 | {
7 | public class Employee
8 | {
9 | /// The full name of the employee.
10 | public string Name { get; set; }
11 |
12 | /// The job title of the employee.
13 | public string Title { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/Mvc.Fast/Models/Employee.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 |
5 | namespace Mvc.Fast.Models
6 | {
7 | public class Employee
8 | {
9 | /// The full name of the employee.
10 | public string Name { get; set; }
11 |
12 | /// The job title of the employee.
13 | public string Title { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/Mvc.Fast/wwwroot/css/abovethefold.css:
--------------------------------------------------------------------------------
1 | body,html{height:100%;font:16px/1.5 "Helvetica Neue",Helvetica,Arial,sans-serif;margin:0}.container{max-width:950px;margin:0 auto;padding:0 10px;display:block}header{background-color:#080808}nav a{color:#9d9d9d;text-decoration:none}nav ul{list-style:none;padding:.7em 0;margin:0}nav li{display:inline-block;margin:0 1em}nav li:first-child{font-size:1.3em;margin-left:0}.wrapper{min-height:100%;margin-bottom:-50px}
--------------------------------------------------------------------------------
/src/Mvc.Fast/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "IncludeScopes": false,
4 | "Debug": {
5 | "LogLevel": {
6 | "Default": "Debug",
7 | "System": "Information",
8 | "Microsoft": "Information"
9 | }
10 | },
11 | "Console": {
12 | "LogLevel": {
13 | "Default": "Debug",
14 | "System": "Information",
15 | "Microsoft": "Information"
16 | }
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/Mvc.Basic/Views/Home/About.cshtml:
--------------------------------------------------------------------------------
1 | @model IEnumerable
2 | @{
3 | ViewData["Title"] = "About Page";
4 | ViewData["Description"] = "The about page of my website";
5 | }
6 |
7 | This is the about.cshtml
8 |
9 | Employees
10 |
11 |
12 | @foreach (var employee in Model)
13 | {
14 | - @employee.Name (@employee.Title)
15 | }
16 |
17 |
18 | @section Scripts {
19 | @*Insert any script tags for this page here*@
20 | }
--------------------------------------------------------------------------------
/src/Mvc.Fast/Views/Home/About.cshtml:
--------------------------------------------------------------------------------
1 | @model IEnumerable
2 | @{
3 | ViewData["Title"] = "About Page";
4 | ViewData["Description"] = "The about page of my website";
5 | }
6 |
7 | This is the about.cshtml
8 |
9 | Employees
10 |
11 |
12 | @foreach (var employee in Model)
13 | {
14 | - @employee.Name (@employee.Title)
15 | }
16 |
17 |
18 | @section Scripts {
19 | @*Insert any script tags for this page here*@
20 | }
--------------------------------------------------------------------------------
/src/Mvc.Basic/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:13615/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "Mvc.Basic": {
19 | "commandName": "Project"
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2017 Mads Kristensen
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
--------------------------------------------------------------------------------
/src/Mvc.Fast/Mvc.Fast.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp2.0
5 | true
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/Mvc.Fast/assets/css/belowthefold.css:
--------------------------------------------------------------------------------
1 | main {
2 | padding: 2rem 0;
3 | display: block;
4 | }
5 |
6 | /* This ensures the footer is always located at the bottom of the page */
7 | .wrapper:after {
8 | content: "";
9 | display: block;
10 | }
11 |
12 | footer, .wrapper:after {
13 | height: 50px;
14 | }
15 |
16 | footer .container {
17 | border-top: 1px solid #e1e1e1;
18 | padding-top: 10px;
19 | }
20 |
21 | /* Changes the layout of the header on small screens */
22 | @media only screen and (max-width: 640px) {
23 | header ul {
24 | text-align: center;
25 | }
26 |
27 | header li:first-child {
28 | display: block;
29 | }
30 | }
--------------------------------------------------------------------------------
/src/Mvc.Fast/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:1116/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "WebApplication90": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:1116/"
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/src/Static.Web/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:33814/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "StaticWeb": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:33815"
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/Mvc.Fast/.template.config/template.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": "Mads Kristensen",
3 | "classifications": [ "Web", "MVC" ],
4 | "name": "ASP.NET Core MVC Fast",
5 | "defaultName": "WebApplication1",
6 | "identity": "madsk.mvc.fast",
7 | "groupIdentity": "madsk.mvc.fast",
8 | "shortName": "mvcfast",
9 | "tags": {
10 | "language": "C#",
11 | "type": "project"
12 | },
13 | "sourceName": "Mvc.Fast",
14 | "preferNameDirectory": true,
15 | "primaryOutputs": [ { "path": "Mvc.Fast.csproj" } ],
16 | "symbols": {
17 | "Framework": {
18 | "type": "parameter",
19 | "description": "The target framework for the project.",
20 | "datatype": "choice",
21 | "choices": [
22 | {
23 | "choice": "netcoreapp2.0",
24 | "description": "Target netcoreapp2.0"
25 | }
26 | ],
27 | "defaultValue": "netcoreapp2.0"
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/src/Mvc.Basic/.template.config/template.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": "Mads Kristensen",
3 | "classifications": [ "Web", "MVC" ],
4 | "name": "ASP.NET Core MVC Basic",
5 | "defaultName": "WebApplication1",
6 | "identity": "madsk.mvc.basic",
7 | "groupIdentity": "madsk.mvc.basic",
8 | "shortName": "mvcbasic",
9 | "tags": {
10 | "language": "C#",
11 | "type": "project"
12 | },
13 | "sourceName": "Mvc.Basic",
14 | "preferNameDirectory": true,
15 | "primaryOutputs": [ { "path": "Mvc.Basic.csproj" } ],
16 | "symbols": {
17 | "Framework": {
18 | "type": "parameter",
19 | "description": "The target framework for the project.",
20 | "datatype": "choice",
21 | "choices": [
22 | {
23 | "choice": "netcoreapp2.0",
24 | "description": "Target netcoreapp2.0"
25 | }
26 | ],
27 | "defaultValue": "netcoreapp2.0"
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/src/Static.Web/.template.config/template.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": "Mads Kristensen",
3 | "classifications": [ "Web", "Static" ],
4 | "name": "ASP.NET Core Static Web",
5 | "defaultName": "WebApplication1",
6 | "identity": "madsk.static.web",
7 | "groupIdentity": "madsk.static.web",
8 | "shortName": "staticweb",
9 | "tags": {
10 | "language": "C#",
11 | "type": "project"
12 | },
13 | "sourceName": "Static.Web",
14 | "preferNameDirectory": true,
15 | "primaryOutputs": [ { "path": "Static.Web.csproj" } ],
16 | "symbols": {
17 | "Framework": {
18 | "type": "parameter",
19 | "description": "The target framework for the project.",
20 | "datatype": "choice",
21 | "choices": [
22 | {
23 | "choice": "netcoreapp1.1",
24 | "description": "Target netcoreapp1.1"
25 | },
26 | {
27 | "choice": "netcoreapp2.0",
28 | "description": "Target netcoreapp2.0"
29 | }
30 | ],
31 | "replaces": "netcoreapp1.1",
32 | "defaultValue": "netcoreapp1.1"
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/src/Mvc.Fast/assets/css/abovethefold.css:
--------------------------------------------------------------------------------
1 | /*
2 | The content of this file is being inlined into a
9 |
10 |
11 |
12 |
13 |
14 |
23 |
24 |
25 | @ViewData["Title"]
26 | @RenderBody()
27 |
28 |
29 |
30 |
35 |
36 |
37 |
38 | @RenderSection("scripts", required: false)
39 |
40 |