Search code examples
asp.net-core.net-corevisual-studio-templates

Visual Studio 2015 Created Old .NET Core 1.0.1 project


I have installed .NET Core 1.1 SDK and Tooling 1.0.1 Tools Preview 2. When I create new .NET Core project using Visual Studio 2015 it creates 1.0.1 project instead of 1.1. Not sure how to change this ugly behavior?


Solution

  • That's because the templates ship with Visual Studio, which haven't received an update as part of the .NET Core release. The reason for that is probably because 1.1 is a "Current" release and 1.0.1 is an "LTS" (Long Term Support) release. Visual Studio will most likely follow the LTS releases as they provide the best and most reliable support for customers.

    If you create a new application with the .NET CLI tooling (e.g. dotnet new), it will use the latest version. You can specify the type of the template with the -t switch:

    • dotnet new: creates a console app
    • dotnet new -t web: creates a full-blown web app
    • dotnet new -t lib: creates a class library project