sdk
sdk copied to clipboard
Enable CLI config to disable preview warnings
I'd love a config setting that disables the preview warnings. I use previews 99% of the time, and would love cleaner CLI spew ... it's a lot of text!
/usr/local/share/dotnet/sdk/3.0.100-preview4-011222/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(151,5): message NETSDK1057: You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview [/Users/rich/git/sudoku-solver/src/sudoku-solver/sudoku-solver.csproj]
You can put
<PropertyGroup>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
</PropertyGroup>
into csproj files, a Directory.Build.props
file in solution / repo directory or set SuppressNETCoreSdkPreviewMessage
as an environment variable (with true
as value) at the moment.
Maybe it's worth documenting it, google tells me a few other people have been looking for it..
u can also suppress with an environment variable https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-environment-variables#suppressnetcoresdkpreviewmessage
IMO this can be closed