Source Generator AnalyzerConfigOptions delete all Property text after the first newline or semicolon #59761
Labels
Area-Compilers
Feature - Source Generators
Source Generators
untriaged
Issues and PRs which have not yet been triaged by a lead
Version Used:
Visual C# Compiler version 3.11.0-4.21602.3 (fc14a13)
Steps to Reproduce:
CompilerVisibleProperty
to Source Generator consuming project, and define property with a semicolon or newline in itGeneratorExecutionContext.AnalyzerConfigOptions.GlobalOptions.TryGetValue
Expected Behavior:
Full text of the property should be returned
Actual Behavior:
only text up to the first semicolon or newline is returned. If, for example, the property starts with a newline due to formatting your MSBuild file like
then the value returned will be an empty string
The text was updated successfully, but these errors were encountered: