So many times, while upgrading the .Net Core SDK to higher version, our working project will start to break due to some bugs on the latest sdk.
Step 1: Go to the project folder location and run the command
Step 2: Type this command to know all installed .Net Core SDK
Step 3: Run this command to change the sdk like this
dotnet new globaljson –sdk-version 7.0.203 –force
Now in your application you will be able to see the global.json file like this.