Commit 4ff08f2
fix: override TargetFrameworks to prevent iOS workload errors in CodeQL build
Using -f net9.0-android doesn't prevent MSBuild from evaluating and
importing workloads for ALL declared TargetFrameworks (including ios and
maccatalyst) during project SDK evaluation. This happens before the
framework selector takes effect.
Using /p:TargetFrameworks=net9.0-android overrides the property at the
command-line level (highest MSBuild priority), so the SDK only sees
net9.0-android during evaluation and doesn't try to import unavailable
iOS/macCatalyst workloads.
Also build only the library project instead of the full solution, since
DemoApp code isn't needed for CodeQL security analysis.
Agent-Logs-Url: https://github.com/trimble-oss/modus-mobile-maui-components/sessions/bcc76a04-3fd6-4b59-beb1-97abd429b4af
Co-authored-by: jeff-at-trimble <215895768+jeff-at-trimble@users.noreply.github.com>1 parent 3b2c9c1 commit 4ff08f2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments