Commit 650f289
authored
[ci] Use
Context: ad5f6e8
The CI nightly pipeline is failing with:
/Users/builder/azdo/_work/4/s/xamarin-android/build-tools/scripts/RoslynAnalyzers.projitems(3,14):
error MSB4113: Specified condition " $(XAShouldAnalyzeAssembly) " evaluates to "" instead of a boolean.
The cause of the problem is commit ad5f6e8, which implicitly
requires that `$(XAShouldAnalyzeAssembly)` have a "boolean" value,
i.e. `True` or `False`. The empty string is not a valid boolean
value.
If `$(XAShouldAnalyzeAssembly)` isn't set -- as can be the case on
the nightly CI run -- then an MSB4113 error results.
Update the `<ItemGroup/>` within
`build-tools/scripts/RoslynAnalyzers.projitems` to use a "safe"
boolean expression:
<ItemGroup Condition=" '$(XAShouldAnalyzeAssembly)' == 'True' ">
This will work reliably even if `$(XAShouldAnalyzeAssembly)` isn't set.'$(XAShouldAnalyzeAssembly)'=='True' (#6382)1 parent 0eb7026 commit 650f289
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments