You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotnet --info
.NET SDK (reflecting any global.json):
Version: 5.0.302
Commit: c005824e35
Runtime Environment:
OS Name: Mac OS X
OS Version: 11.0
OS Platform: Darwin
RID: osx.11.0-x64
Base Path: /usr/local/share/dotnet/sdk/5.0.302/
Host (useful for support):
Version: 5.0.8
Commit: 35964c9215
.NET SDKs installed:
3.1.102 [/usr/local/share/dotnet/sdk]
3.1.409 [/usr/local/share/dotnet/sdk]
5.0.104 [/usr/local/share/dotnet/sdk]
5.0.205 [/usr/local/share/dotnet/sdk]
5.0.302 [/usr/local/share/dotnet/sdk]
Steps to Reproduce:
dotnet new console
Add <TreatWarningsAsErrors>True</TreatWarningsAsErrors> to .csproj
as @Youssef1313 says 5.0.3xx behavior is correct. placing <TreatWarningsAsErrors>True</TreatWarningsAsErrors> in your project overrides all other options meaning all warnings are errors.
Version Used:
Steps to Reproduce:
dotnet new console
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
to.csproj
Directory.Build.props
with.editorconfig
with6a. Add
global.json
withor
6b. Add
global.json
withdotnet build
Expected Behavior:
Build output will the same
Actual Behavior:
for sdk 5.0.104 I've got
for sdk 5.0.205 I've got
Sdk 5.0.3xx acts like 5.0.2xx
Which one is correct? Is it introduced or fixed bug between 5.0.1 and 5.0.2?
The text was updated successfully, but these errors were encountered: