question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OnPlatform with Thickness breaks XAML Hot Reload

See original GitHub issue

Description

<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:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mgoertz-msftcommented, Jul 15, 2022

@etvorun Correct, I added support for AssemblyName in Xmlnsdefinition, so this should work now in 17.3 Preview 3.

0reactions
msftbot[bot]commented, Jul 19, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting XAML Hot Reload - Visual Studio
This troubleshooting guide includes detailed instructions that should resolve most issues that prevent XAML Hot Reload from working ...
Read more >
Hot Reload is rubbish : r/Blazor
It sounds like you're saying more than just hot reload breaks, correct? What else breaks? Have you already opened a Visual Studio feedback ......
Read more >
XAML Hot Reload Updates | Xamarin Show - YouTube
This week, James is joined by Dmitry Lyalin and Tim Miller who show off the latest and greatest in XAML Hot Reload technology...
Read more >
XAML Hot Reload for Xamarin.Forms In-Depth - YouTube
This week, James is joined by friend of the show Maddy Leger, Xamarin Program Manager, who gives us a deep dive tour of...
Read more >
.NET MAUI Tutorial for Beginners - Build iOS, Android, macOS ...
WT.mc_id=friends-0000-jamont * Hot Restart : ... NET MAUI pages in C# instead of XAML 00:54:30 - Access platform APIs with .NET MAUI 01:00:10 ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found