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

added support for TreatWarningsAsErrors in csproj #1459

Merged
merged 7 commits into from
May 7, 2019

Conversation

filipw
Copy link
Member

@filipw filipw commented Apr 14, 2019

At the moment we do not respect <TreatWarningsAsErrors> setting in csproj file and even if build correctly reports errors, we still show warnings only in the editor.
This is a bit ironic, because OmniSharp itself uses <TreatWarningsAsErrors>true</TreatWarningsAsErrors> - and we do not catch our own warnings 😀

This PR fixes that.

@@ -57,8 +57,12 @@ public async Task HelloWorld_has_correct_property_values()
Assert.Equal("obj/Debug/netcoreapp2.1/", projectFileInfo.IntermediateOutputPath.EnsureForwardSlashes());
Copy link

Choose a reason for hiding this comment

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

Probably would also be good to add a test for the actual diagnostics we report.

@david-driscoll david-driscoll merged commit 46c814a into OmniSharp:master May 7, 2019
@filipw filipw deleted the bugfix/nowarn branch May 12, 2020 07:35
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.

4 participants