Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set TreatWarningsAsErrors to true #1897

Merged
merged 5 commits into from
Aug 24, 2022
Merged

set TreatWarningsAsErrors to true #1897

merged 5 commits into from
Aug 24, 2022

Conversation

adamsitnik
Copy link
Member

@AndreyAkinshin we currently have zero warnings (after #1896). I think that we should consider setting TreatWarningsAsErrors to true to prevent from new code issues being added. What do you think?

Copy link
Member

@AndreyAkinshin AndreyAkinshin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the CI builds are red because of the Pack command:

\NuGet.Build.Tasks.Pack.targets(221,5): error NU5048: The 'PackageIconUrl'/'iconUrl' element is deprecated. Consider using the 'PackageIcon'/'icon' element instead. Learn more at https://aka.ms/deprecateIconUrl [C:\projects\benchmarkdotnet\src\BenchmarkDotNet\BenchmarkDotNet.csproj]
dotnet.exe : An error occurred when executing task 'Pack'.
At C:\projects\benchmarkdotnet\build.ps1:89 char:1
+ & dotnet run --project build/Build.csproj -- $args
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (An error occurr...ng task 'Pack'.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
Error: .NET CLI: Process returned an error (exit code 1).
Command executed with exception: Error: .NET CLI: Process returned an error (exit code 1).

@adamsitnik
Copy link
Member Author

@AndreyAkinshin the CI is finally green. I am going to "dismiss" your review and merge it. I hope you don't mind.

@adamsitnik adamsitnik merged commit 52d7707 into master Aug 24, 2022
@adamsitnik adamsitnik deleted the warningsAsErrors branch August 24, 2022 12:41
@AndreyAkinshin AndreyAkinshin added this to the v0.13.2 milestone Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants