linux vscode dotnet6

how to create webservice with dotnet

dotnet new webapi -o MyMicroservice –no-https -f net6.0

I was getting error below in linux mint 

“The SDK ‘Microsoft.NET.SDK.WorkloadAutoImportPropsLocator  specified could not be found.  /snap/dotnet-sdk/current/sdk/6 Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.props”

and solution is https://stackoverflow.com/a/70871704/175554

how it looks 

vscode in linux mint