After upgrading Visual studio 2017 to 15.9.10, the below error started showing up while building the project-
—————————————————————————————————————————
Severity Code Description Project File Line Suppression State
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. Bps.Titanium.Catalog.Business C:\Program Files\dotnet\sdk\2.1.505\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 137
—————————————————————————————————————————-
Solution:
Install .net core SDK 2.2 using this link
After installing open the project and check the details by running dotnet –info command. It will show the correct SDK version.