OnPlatform with Thickness breaks XAML Hot Reload
See original GitHub issueDescription
<OnPlatform x:TypeArguments="Thickness"
x:Key="VeryThick"
Default="40,20"
/>
Try to hot reload a file where this exists, and nothing with hot reload.
a/ would like this valid XAML to hot reload b/ would like for hot reload to continue working even if other xaml in the file is considered invalid
Errors:
Severity Code Description Project File Line Suppression State Error XLS0414 The type ‘Thickness’ was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. ControlGallery C:\work\ControlGallery\src\ControlGallery\Resources\Styles\Styles.xaml 69
Severity Code Description Project File Line Suppression State Error XHR0008 The name “Thickness” does not exist in the namespace “http://schemas.microsoft.com/dotnet/2021/maui”. ControlGallery C:\work\ControlGallery\src\ControlGallery\Resources\Styles\Styles.xaml 69
Severity Code Description Project File Line Suppression State Error XHR0008 The name “OnPlatform” does not exist in the namespace “http://schemas.microsoft.com/dotnet/2021/maui”. ControlGallery C:\work\ControlGallery\src\ControlGallery\Resources\Styles\Styles.xaml 69
Steps to Reproduce
add that xaml to a resource dictionary and change anything else on the page
Version with bug
Release Candidate 3
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
all
Did you find any workaround?
No response
Relevant log output
No response
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
@etvorun Correct, I added support for AssemblyName in Xmlnsdefinition, so this should work now in 17.3 Preview 3.
This issue is being closed due to inactivity. If this issue is still affecting you, please follow the steps above to use the VS Feedback Tool to report the issue.