Click here to Skip to main content
15,434,788 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWhich one of the following codes has better performance in ASP.NET Core? Pin
Alex Dunlop4-Feb-22 21:05
MemberAlex Dunlop4-Feb-22 21:05 
AnswerRe: Which one of the following codes has better performance in ASP.NET Core? Pin
Afzaal Ahmad Zeeshan5-Feb-22 3:27
mveAfzaal Ahmad Zeeshan5-Feb-22 3:27 
QuestionWhat to use for a job scheduler for a .net app with plugins for each job Pin
jumbojs29-Jan-22 3:39
Memberjumbojs29-Jan-22 3:39 
AnswerRe: What to use for a job scheduler for a .net app with plugins for each job Pin
Bohdan Stupak4-Feb-22 4:42
professionalBohdan Stupak4-Feb-22 4:42 
QuestionInitial design question on an ASP.NET Core MVC project. Pin
nstk20-Jan-22 9:21
Membernstk20-Jan-22 9:21 
Questionasp.net Pin
Member 1449552218-Jan-22 0:18
MemberMember 1449552218-Jan-22 0:18 
AnswerRe: asp.net Pin
Richard Deeming18-Jan-22 1:44
mveRichard Deeming18-Jan-22 1:44 
QuestionError NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
Member 1547980726-Dec-21 3:52
MemberMember 1547980726-Dec-21 3:52 
Hello All,

Wondering why my system is giving me the message: "Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 ... use a version of the .NET SDK that supports .NET Core 2.2"

I put line numbers below for ease in illustrating where I'm coming from. From what I can tell based on the Package Manager Console (see line numbers 19, 23, 25 and 28 below) I have .NET Core 2.2, am I correct? If I already have .NET Core 2.2, then I wonder what am I missing that is preventing a successful program run?

To make sure I am not missing any detail in showing what I am seeing, I have uploaded the full solution to github shown in the link:

https://github.com/vlmbts/MVCcoreExploreCalifornia/commit/5ef856d8e497518553f641ad9df50a9c2b2db044

If I uninstall then reinstall things in a trial and error fashion hoping that somehow things can get fixed, I can actually do more harm than good, so I do not wish to pretend having significant experience
installing Visual Studio and .NET Core 2.2; instead I'd like to ask the guidance of experts here who have more experience than I do in this area.

1 From Error List Window:
2 Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2. Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.2.
3
4 From Package Manager Console:
5
6 PM> dotnet --info
7 .NET SDK (reflecting any global.json):
8 Version: 6.0.101
9 Runtime Environment:
10 OS Name: Windows
11 OS Version: 6.3.9600
12 OS Platform: Windows
13 RID: win81-x64
14 Base Path: C:\Program Files\dotnet\sdk\6.0.101\
15 Host (useful for support):
16 Version: 6.0.1
17 .NET SDKs installed:
18 2.1.526 [C:\Program Files\dotnet\sdk]
19 2.2.207 [C:\Program Files\dotnet\sdk]
20 6.0.101 [C:\Program Files\dotnet\sdk]
21 .NET runtimes installed:
22 Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
23 Microsoft.AspNetCore.All 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
24 Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
25 Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
26 Microsoft.AspNetCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
27 Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
28 Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
29 Microsoft.NETCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
30 Microsoft.WindowsDesktop.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Thanks in advance for all the help you could give.
AnswerRe: Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
OriginalGriff26-Dec-21 3:53
mveOriginalGriff26-Dec-21 3:53 
AnswerRe: Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
Mycroft Holmes26-Dec-21 11:45
professionalMycroft Holmes26-Dec-21 11:45 
GeneralRe: Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
Member 1547980726-Dec-21 18:21
MemberMember 1547980726-Dec-21 18:21 
QuestionHttps redirection modifies url path Pin
Member 1547511221-Dec-21 1:10
MemberMember 1547511221-Dec-21 1:10 
AnswerRe: Https redirection modifies url path Pin
Richard Deeming4-Jan-22 0:26
mveRichard Deeming4-Jan-22 0:26 
QuestionHow to fill Foreign Key in a relational database when creating a new row? Pin
Alex Dunlop19-Dec-21 7:12
MemberAlex Dunlop19-Dec-21 7:12 
AnswerRe: How to fill Foreign Key in a relational database when creating a new row? Pin
Alex Dunlop19-Dec-21 8:02
MemberAlex Dunlop19-Dec-21 8:02 
QuestionWhere did i get asp.net project in linux with mysql database.? Pin
Tushar Surve 202115-Dec-21 6:11
MemberTushar Surve 202115-Dec-21 6:11 
AnswerRe: Where did i get asp.net project in linux with mysql database.? Pin
Richard Deeming15-Dec-21 6:22
mveRichard Deeming15-Dec-21 6:22 
GeneralRe: Where did i get asp.net project in linux with mysql database.? Pin
Mycroft Holmes15-Dec-21 13:31
professionalMycroft Holmes15-Dec-21 13:31 
QuestionTwo ReportViewers on the same project Pin
Member 1077312213-Dec-21 1:01
MemberMember 1077312213-Dec-21 1:01 
QuestionRe: Two ReportViewers on the same project Pin
CHill6013-Dec-21 1:09
mveCHill6013-Dec-21 1:09 
QuestionAn unhandled exception occurred while processing the constructor in ASP.NET Core MVC Pin
Alex Dunlop6-Dec-21 7:51
MemberAlex Dunlop6-Dec-21 7:51 
AnswerRe: An unhandled exception occurred while processing the constructor in ASP.NET Core MVC Pin
Richard Deeming6-Dec-21 21:54
mveRichard Deeming6-Dec-21 21:54 
GeneralRe: An unhandled exception occurred while processing the constructor in ASP.NET Core MVC Pin
Alex Dunlop7-Dec-21 7:09
MemberAlex Dunlop7-Dec-21 7:09 
QuestionUse Active Directory for authentication Pin
Joseline Riker2-Dec-21 5:50
MemberJoseline Riker2-Dec-21 5:50 
QuestionIs this data annotation correct for date and time? Pin
Alex Dunlop25-Nov-21 22:26
MemberAlex Dunlop25-Nov-21 22:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.