Tuesday, March 15, 2022

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

No comments:

C# scan cs file and find variables values and names

using Microsoft . CodeAnalysis ; using Microsoft . CodeAnalysis . CSharp ; using Microsoft . CodeAnalysis . CSharp . Syntax ; using Xunit . ...