-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
MSBuildWarningsAsMessages should allow comma separation #7094
Comments
Note that the same is true for MSBuildWarningsAsErrors—that is, using commas as delimiters doesn't work. In testing that, it also seemed that when I promoted the warnings to errors, the build still "succeeded." I think that was a bug you fixed at some point, @benvillalobos? Do you remember what version that was in? I seem to be using 17.0.0.52104, and I'd thought it was before that. |
That was fixed around 16.10. I don't see that behavior in 17.1.0-preview-21572-11+b1e1a581a |
Also tested MSBuildWarningsAsErrors with this repro on 17.0.0-preview-21308-06+420c91c69 and the build failed like it should (using semicolons as the delimiter) |
Can confirm this is still broken in Here's a simple repro. <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<NoWarn>$(NoWarn);MYWARN0001;BOGUS0001,MYWARN0002,CS1030,BOGUS0001</NoWarn>
</PropertyGroup>
<Target Name="WarnTest" AfterTargets="BeforeBuild">
<Warning Code="MYWARN0001" Text="This is a warning." />
<Warning Code="MYWARN0002" Text="This is another warning." />
</Target>
</Project> class.cs #warning Warning from C# The I just broke our official build because of this: dotnet/machinelearning#6935 |
We don't:
Originally posted by @Forgind in #7089 (comment)
The text was updated successfully, but these errors were encountered: