Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Generators] Captured msbuild properties do not escape editorconfig reserved characters #47814

Closed
jeromelaban opened this issue Sep 17, 2020 · 2 comments
Labels

Comments

@jeromelaban
Copy link

Version Used: VS 16.8 Pre 3

Steps to Reproduce:

  1. Capture an msbuild property
<CompilerVisibleProperty Include="MyProperty" />
  1. Set the property:
<MyProperty>Value1;Value2</MyProperty>
  1. Read the property
context.AnalyzerConfigOptions.GlobalOptions.TryGetValue($"build_property.MyProperty", out var value);

Expected Behavior:
The value is Value1;Value2

Actual Behavior:
The value is Value1

@sharwell
Copy link
Member

Duplicate of #44596

@sharwell sharwell marked this as a duplicate of #44596 Sep 22, 2020
@sharwell sharwell added Area-Compilers Resolution-Duplicate The described behavior is tracked in another issue labels Sep 22, 2020
@jinujoseph jinujoseph added Area-IDE and removed Area-Compilers Resolution-Duplicate The described behavior is tracked in another issue labels Sep 22, 2020
@sharwell
Copy link
Member

📝 I don't believe there is any escape sequence for the two characters # and ;.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants