A
A
aydep2022-03-08 20:21:26
visual studio
aydep, 2022-03-08 20:21:26

How to choose .NET Framework 6.0.3 if VisualStudio doesn't see it?

Hello!
I wanted to install the EntityFraemworkCore package and got an error saying that the .NET Framework version is not the same:

Failed to install package 'Microsoft.EntityFrameworkCore 6.0.3'. You are trying to install this package in a project whose required framework version is ".NETFramework,Version=v4.8"

I downloaded and installed the required version from here: site
But creating a new project on the new version does not work, it is simply not in the selection list. There are only 4.7.2 and 4.8 but not 6.0.3.
62279e74e2c8a746381806.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
@
@insighter, 2022-03-08
@aydep

You have selected the wrong project type. Make sure the template name does not contain the suffix word (.NET Framework) when creating the project.
For example,
"Console Application" is a template for a NetCore based project
"Console App (.NET Framework)" is a template for a .NET Framework 4 based project .X

A
Alexander, 2022-03-09
@Adler_lug

.NET Framework 6.0.3

This does not exist in nature.
Sometimes .Net 6.0.3
is a little different technology...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question