omnisharp-roslyn
omnisharp-roslyn copied to clipboard
Toggle nullable context in `omnisharp.json` for csx scripts
I am using vscode C# extension to manage a few csx scripts without .csproj
My omnisharp.json
is
"script": {
"enableScriptNuGetReferences": true,
"defaultTargetFramework": "net6.0"
}
However, by default it doesn't enable nullable context, unless I add #nullable enable
at the top of csx.
Would it be possible to toggle nullable context via omnisharp.json
similar to <Nullable>enable</Nullable>
in .csproj
?