AvaloniaUI / AvaloniaVS

Visual Studio Extension for Avalonia
MIT License
412 stars 77 forks source link

Previewer fails to resolve types if they're `internal` rather than `public` #437

Closed alexrp closed 6 months ago

alexrp commented 6 months ago

Describe the bug

Severity    Code    Description Project File    Line    Suppression State
Error       Unable to resolve type ava.MainWindow   ava Z:\Source\tests\ava\MainWindow.axaml        

To Reproduce

  1. Create a new project from the avalonia.app template.
  2. Modify MainWindow.axaml.cs so the class is internal.
  3. Build the project.
  4. Open MainWindow.axaml in the previewer.

AvaloniaVS plugin version

11.5

Avalonia version

11.0.6

Visual Studio version

17.9.0 Preview 2.1

Relevant log output

01:23:47.668 [Information] 0 Starting previewer process for '"Z:\Source\tests\ava\bin\Debug\net8.0\ava.dll"'
01:23:47.672 [Information] 31372 Started previewer process for '"Z:\Source\tests\ava\bin\Debug\net8.0\ava.dll"'. Waiting for connection to be initialized.
01:23:47.730 [Information] 31372 Connection initialized
01:23:47.936 [Error] 31372 UpdateXamlResult error
System.Xaml.XamlException: Unable to resolve type ava.MainWindow

Additional context

No response

workgroupengineering commented 6 months ago

It fixed in Avalonia 11.0.7