Skip to content

Commit 72f2354

Browse files
authored
[ci] Remove more warnings (#30585)
### Description of Change This pull request includes a modification to the `Directory.Build.targets` file to adjust how specific MSBuild warnings are handled. The change moves the `MSB4011` warning from being suppressed to being treated as a message instead. Build configuration changes: * [`Directory.Build.targets`](diffhunk://#diff-50e91c82311ea26f2a73202525dfdf2b0a89c178ee666b2bf3ad4c84ac4c06dcL29-R30): Updated the `NoWarn` property to remove suppression of `MSB4011` and added `MSBuildWarningsAsMessages` to treat `MSB4011` and `NETSDK1206` warnings as messages instead. ### Issues Fixed Fixes #
2 parents 70a2858 + c6e8775 commit 72f2354

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Directory.Build.targets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
<PropertyGroup>
2727
<!-- Microsoft.Build.Msix.props" cannot be imported again -->
2828
<!-- Found version-specific or distribution-specific runtime identifier(s)-->
29-
<NoWarn>$(NoWarn);MSB4011;NETSDK1206</NoWarn>
29+
<NoWarn>$(NoWarn);NETSDK1206;NU1702</NoWarn>
30+
<MSBuildWarningsAsMessages>$(MSBuildWarningsAsMessages);MSB4011;MSB3277;NETSDK1206;NU1702</MSBuildWarningsAsMessages>
3031
</PropertyGroup>
3132

3233
<!-- platform version number information -->

0 commit comments

Comments
 (0)