Skip to content

Xaml analyzer + fix if possible #45

Description

@JohanLarsson

Before:

<TextBlock Text ="One resource" />

After:

<TextBlock Text ="{l:static p:Resources.One_resource" />

@mgoertz-msft is there any hope for being able to do ^?

Activity

  1. mgoertz-msft commented on Apr 18, 2018

    @mgoertz-msft

    @JohanLarsson Are you asking if there is hope to be able to create an analyzer + code fixer for XAML files that could do this?

    If so, I'm afraid this won't be possible until we add full support for XAML to Roslyn so that you could write your own analyzers, use XAML syntax trees, etc. The current document analyzer we have is based in the Roslyn internal DocumentDiagnosticAnalyzer and is specific to the XAML Language Service in Visual Studio.

  2. JohanLarsson commented on Apr 18, 2018

    @JohanLarsson
    MemberAuthor

    Yes, that was my question, your name was suggested for who to ask so I pinged you here. Analyzers for xaml would be sweet.

  3. mgoertz-msft commented on Apr 18, 2018

    @mgoertz-msft

    I agree, that would be sweet, and it's certainly something we are thinking about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions