Skip to content

How could I compile the code has interceptor with roslyn code analysis package #70935

Closed Answered by WeihanLi
WeihanLi asked this question in Q&A
Discussion options

You must be logged in to vote

Find it, we could update the Features, for example:

var parseOptions = new CSharpParseOptions()
    .WithFeatures(new KeyValuePair<string, string>[]
    {
        new("InterceptorsPreviewNamespaces", "CSharp12Sample.Generated")
    });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by WeihanLi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant