.NET MAUI 10.0
Last reviewed Sep 19, 2026
Prompt Details
Prompt Composition
2prompts
- C# 14106 lines · 4.4K tokens
- .NET MAUI 10.067 lines · 3.4K tokens
Total173 lines · 7.8K tokens
CWE Coverage
- 20
- 22
- 59
- 78
- 79
- 89
- 94
- 117
- 190
- 200
- 201
- 208
- 209
- 214
- 250
- 257
- 295
- 312
- 319
- 323
- 327
- 338
- 346
- 362
- 367
- 378
- 426
- 459
- 489
- 502
- 532
- 552
- 611
- 613
- 639
- 674
- 759
- 770
- 772
- 775
- 798
- 807
- 862
- 915
- 916
- 918
- 922
- 923
- 942
- 1333
- 1395
Prompt Preview
Apply the C# 14 baseline first. These additional rules cover .NET MAUI 10.0 applications targeting .NET 10 on Android, iOS, Mac Catalyst, and Windows, including applications that use HybridWebView or BlazorWebView.
Storage and recovery
- Store small credentials with
SecureStorage.Default; reservePreferences.Defaultfor nonsensitive settings. Neither bundledMauiAssetfiles nor application configuration can protect a client secret. - Handle null results and failures from
SecureStorage.GetAsyncandSetAsyncwithout falling back to plaintext. Remove unreadable entries, usingRemoveAllwhen the store cannot be recovered, and require reauthentication before using protected features. - Exclude Android's
<application-id>.microsoft.maui.essentials.preferences.xmlfrom backup: restored ciphertext can lack its original encryption keys. Configureandroid:fullBackupContentfor older devices andandroid:dataExtractionRulesfor Android 12+ targets, covering cloud backup and device transfer separately. Do not assumeandroid:allowBackup="false"disables every device-transfer mechanism. - Handle iOS Keychain entries surviving uninstall: check a first-install marker and clear stale credentials before restoring a session. On Apple targets, use the
SecureStorage.Default.SetAsyncoverload withSecAccessible.WhenUnlockedThisDeviceOnlywhen credentials must remain device-bound and usable only while unlocked; the default isAfterFirstUnlock, without a biometric challenge on each read. - Apply encryption and explicit backup exclusions to sensitive files under