Coder Social home page Coder Social logo

aspnetcoretemplatepack's Introduction

ASP.NET Core Template Pack

Build status

Contains the following project templates for ASP.NET Core development:

  • Static website template
  • MVC Basic template
  • MVC Fast template
  • Blog application
  • Photo Gallery application

Install

Command line

In the console, execute the following command:

dotnet new -i "MadsKristensen.AspNetCore.Web.Templates::*"

Visual Studio 2017.3

The extension adds the project template to the ASP.NET New Project dialog:

New Project Dialog

Templates

Static Website

Uses the ASP.NET Core project system to provide the latest features in Visual Studio web tooling to create a completely static website. No C# in the project at all - just plain old CSS, JavaScript and HTML.

Static Web Screenshot

Custom MimeType mappings

See the Static Site Helper repo for how to serve custom file extensions at development time through ASP.NET Core.

Use

dotnet new staticweb -n myapp

MVC Basic

This template makes it super easy to get started with building an ASP.NET Core MVC application. It doesn't have any dependencies on Bower, npm, BundlerMinifier, Bootstrap, jQuery or anything else. It's the perfect starting point for developers that know their ASP.NET Core.

Mvc Basic Screenshot

Use

dotnet new mvcbasic -n myapp

MVC Fast

This template is a variation of the MVC Basic template, but with added features for creating high performance web applications.

Features:

  • Using Gulp to bundle and minify CSS and JS files
  • Minifies the HTML
  • Uses response caching on both client and server
  • Inline CSS for above the fold content
  • Cache busting of CSS and JS references

Mvc Fast Screenshot

The template points starts you out with the best score on webpagetest.org.

Speed test

As well as 100/100 points on PageSpeed Insights

PageSpeed Insights

Use

dotnet new mvcfast -n myapp && npm install

Blog application

This is the Miniblog.Core application - a high performant and full featured blogging app.

Photo Gallery application

This is the Photo Gallery application - A photo gallery site implemented in ASP.NET Core 2.0 Razor Pages.

aspnetcoretemplatepack's People

Contributors

jburman avatar madskristensen avatar sayedihashimi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspnetcoretemplatepack's Issues

Is Vue 2 supported yet?

The VS 2015 version seems to supported Vue 2.
Will this be the case with the VS 2017 version also?

Support Multiple project with solution file

I want to create multiple .net core projects with solution files.
Also project other referenced added in them.
My Directory structure is like:

|- data
|- design
|- help
|- src

|-.sln (VS solution file)
|-Libraries

|-LIB1.csproj
|-LIB2.csproj
|-LIB3.csproj
|-Presentation
|-PRE1.csproj
|-PRE2.csproj
|-Tests
|-TEST1.csproj
|-TEST2.csproj
|-Plugins
|-Plugin1.csproj
|-Plugin2.csproj

error NU1003: PackageTargetFallback and AssetTargetFallback cannot be used together

I just tried to use the MVC fast template on my machine:

C:\> dotnet --info
.NET Command Line Tools (2.0.0)

Product Information:
 Version:            2.0.0
 Commit SHA-1 hash:  cdcd1928c9

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.15063
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.0.0\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0
  Build    : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

I used the following command to create a new site:

dotnet new mvcfast -n myapp && npm install

When I try to run I get the following error:

myapp.csproj : error NU1003: PackageTargetFallback and AssetTargetFallback cannot be used together. Remove PackageTargetFallback(deprecated) references from the project environment.

It seems as if the template isn't updated to the latest project file formats? Or have I missed something?

cannot install on vs2017 pro

Tried to install from "Extension and Updates" or Download from Market, still got this error

i get an strange error from vsix installer,
but it;s shows Chinese error message,
it's means about "Because some requirement condition can't be resolve, can't install this extension to this product"
image

Install VSIX in Visual Studio Code package.json not found error

Installing ASP.NET Core Template Pack 2017.3 from Visual Studio Marketplace as a VSIX extension within VS Code errors stating:

extension/package.json not found inside zip.

template-pack-2017 3

It contains a 'catalog.json' and 'manifest.json', but no 'package.json'.

Should this work in VS Code? Is this an issue with the template pack or VS Code?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.