sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Enable CLI config to disable preview warnings

Open richlander opened this issue 5 years ago • 2 comments

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]

richlander avatar Apr 22 '19 23:04 richlander

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..

dasMulli avatar Apr 29 '19 21:04 dasMulli

u can also suppress with an environment variable https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-environment-variables#suppressnetcoresdkpreviewmessage

SimonCropp avatar Aug 08 '22 05:08 SimonCropp

IMO this can be closed

SimonCropp avatar Oct 05 '23 00:10 SimonCropp