I have downloaded and installed .NET Core 5.0 SDK (v5.0.100-preview.1) in my Visual Studio 2019. But it is not available in Target framework. Am I missing something?
Try to set it in your .csproj file. Right click (maybe unload) and edit:
net5.0