Source generator is not working in Visual 2019

Shilpalakshmi Mithur 0 Reputation points
2023-11-21T03:08:36.3266667+00:00

Hi I am using Visual studio 2019 extension development for that using Syntax Generator , using Source generator ,It is not working in 2019. Working in VS 2022

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,184 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
227 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,086 Reputation points Microsoft Vendor
    2023-11-28T10:03:12.6066667+00:00

    Hi @Shilpalakshmi Mithur ,

    Thanks for sharing us more information.

    Since you didn’t get any error message, I suspect that some settings are not fully compatible.

    In default project, I can see that the version of the referenced NuGet packages(like "Microsoft.CodeAnalysis.XXXXX") is 3.X. On your side, did you reference a higher version of these NuGet packages(for example version 4.X)? If so, please try to use a previous 3.X version of the package and test again.

    Sincerely,

    Tianyu


    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.

    0 comments No comments

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.