Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense does not work whem mix assembly version #479

Closed
workgroupengineering opened this issue Jun 13, 2024 · 0 comments · Fixed by #481
Closed

Intellisense does not work whem mix assembly version #479

workgroupengineering opened this issue Jun 13, 2024 · 0 comments · Fixed by #481
Labels

Comments

@workgroupengineering
Copy link
Contributor

workgroupengineering commented Jun 13, 2024

Describe the bug

If you add references Avalonia 11.0.10 and Avalonia.Labs.Controls 11.0.10.1 to a project, in some cases intellisense does not work

To Reproduce

none

AvaloniaVS plugin version

11.5, 41f4539

Avalonia version

11.0.10

Visual Studio version

17.9.7

Relevant log output

none

Additional context

After the investigations I have done this depends on the following line:

var mt = types[type.AssemblyQualifiedName] = ConvertTypeInformation(type);

types are indexed by AssemblyQualifiedName which also contains the assembly version.

My Pro target net7.0 Avalonia 11.0.10

Avalonia.Labs.Controls 11.0.10.1 Labs has the base version of Avalonia 11.0 see here

The obj\Debug\net7.0\Avalonia\reference will have similar content

...
C:\Users\...\.nuget\packages\avalonia\11.0.10\ref\net6.0\Avalonia.Base.dll
C:\Users\...\.nuget\packages\avalonia\11.0.10\ref\net6.0\Avalonia.Controls.dll
C:\Users\...\.nuget\packages\avalonia\11.0.10\ref\net6.0\Avalonia.DesignerSupport.dll
C:\Users\...\.nuget\packages\avalonia\11.0.10\ref\net6.0\Avalonia.Dialogs.dll
C:\Users\...\.nuget\packages\avalonia\11.0.10\ref\net6.0\Avalonia.dll
C:\Users\...\.nuget\packages\avalonia.labs.controls\11.0.10.1\lib\net6.0\Avalonia.Labs.Controls.dll
...

When at following line try to retrive tproerty type of eg: Swipe.Left well be null because QualifiedTypeFullName is Avalonia.Markup.Xaml.Templates.DataTemplate, Avalonia.Markup.Xaml, Version=11.0.0.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b

var propertyType = GetType(types, prop.TypeFullName, prop.QualifiedTypeFullName);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant