AvaloniaUI / AvaloniaVS

Visual Studio Extension for Avalonia
MIT License
421 stars 81 forks source link

Xaml files from Avalonia project do not load in designer #398

Open emmauss opened 11 months ago

emmauss commented 11 months ago

Describe the bug

All xaml/axaml files in the Avalonia repository do not load in the designer. There's no option to choose the built project, nor does intellisense work.

To Reproduce

Open the Avalonia Project in VS and open any xaml file.

AvaloniaVS plugin version

11.1

Avalonia version

master as of https://github.com/AvaloniaUI/Avalonia/commit/b83a5eb8b737f5c9239fadce7860264ea736a4b0

Visual Studio version

17.7.3

Relevant log output

07:26:33.769 [Information]  Avalonia Package initialized

// nothing else after this

Additional context

No response

Takoooooo commented 11 months ago

Not sure how to solve that. The problem here is in this code https://github.com/AvaloniaUI/AvaloniaVS/blob/master/AvaloniaVS.Shared/Services/SolutionService.cs#L80-L103 In Avalonia SafeAreaDemo.iOS is not loaded correctly and this method is infinetly awaiting for project references to load but they won't be loaded. We need to somehow find a way to understand whether project is loaded correctly and otherwise skip loading its references. But currently we can just fix the SafeAreaDemo.iOS and preview would work correctly

workgroupengineering commented 10 months ago

@Takoooooo maybe this could help you.