madks13
madks13

Reputation: 155

Visual Studio 2019 creating .NetStandard 2.0.3 libraries instead of 2.1 inside a .Net Core 3.1 solution

i've recently (yesterday) updated visual studio 2019. I have access to .net core 3.1 sdk and can create .net core 3.1 projects. However, when i try to create a .net standard library, it defaults to 2.0.3 instead of 2.1.

As far as i understand, .net standard 2.1 should come with .net core 3.1.

Am i misunderstanding something here?

Upvotes: 2

Views: 2272

Answers (1)

magicandre1981
magicandre1981

Reputation: 28826

Create a blank solution and add a new Class Library (.NET Standard). In properties change the target framework to .NET Standard 2.1

enter image description here

Save the changes and click on Project->Export template:

enter image description here

and create an Project template based on the class lib project.

enter image description here

give it a name and description and finish.

enter image description here

and when you create a new project, select your generated template and now it is always set to .NET Standard 2.1 instead of .NET Standard 2.0.

Upvotes: 1

Related Questions