"sdk": "version": "8.0.500", "rollForward": "latestFeature"

sudo apt install dotnet-sdk-8.0 Even after installing the new SDK, your project might default to an older one. To force usage of the “8.1” SDK:

Add a global.json file in your solution root: