I can't use blend for visual studio 2022 to edit axaml

c00012 741 Reputation points
2023-01-30T04:20:54.6733333+00:00

Hello,

I'm studying Avalonia UI to migrate my wpf app.

so, I created Avalonia mvvm project and open it in blend for VS 2022.

I got a following error message:

" No editor for 'C:\Users\c0001\source\repos\AvaloniaApplication1\AvaloniaApplication1\Views\MainWindow.axaml'."

How can I fix it? please let me know.

thanks,

c00012

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,141 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,957 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 29,011 Reputation points Microsoft Vendor
    2023-01-30T12:49:41.9733333+00:00

    Hi @c00012

    Welcome to Microsoft Q&A! 

    You can reinstall the Avalonia for Visual Studio 2022 extension in Blend for Visual Studio 2022 and check it again. 

    Or please try right clicking the file then selecting "Open With..." > "Avalonia XAML Editor". 

    You can try to create another project and verify if it just occurs in Avalonia project. If so, I suppose it is related to Avalonia project, please report it in dedicated Avalonia forum

    Update:

    I tested on my side and could reproduce your issue.

    I installed the Avalonia for Visual Studio 2022 extension in Blend for Visual Studio, but still get the following error when opening the Avalonia MVVM application in Blend for Visual Studio:

    There is no editor available for ‘C:...\xxx.axaml’. Make sure the application for the file type (.axaml) is installed. 

    I suppose that the Avalonia for Visual Studio 2022 extension is not supported in Blend for Visual Studio.

    You can send feedback in Avalonia forum or Visual Studio Feedback.

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.