meziantou / Meziantou.Polyfill

MIT License
43 stars 1 forks source link

IncludedPolyfills with M: ... do not work as expected #28

Closed dotlogix closed 1 year ago

dotlogix commented 1 year ago

Version of the Meziantou.Polyfill NuGet package

1.0.28

Description

I tried to whitelist the M:System.Linq option to only include a few polyfills. For some reason this does not work if I add M: without anything it includes all M: options correctly

<MeziantouPolyfill_IncludedPolyfills>M:System.Linq</MeziantouPolyfill_IncludedPolyfills>

Reproduction Steps

Create a project and add the source generator to it. Add

<MeziantouPolyfill_IncludedPolyfills>M:System.Linq</MeziantouPolyfill_IncludedPolyfills>

In a property group

Other information

No response

meziantou commented 1 year ago

Fixed by https://github.com/meziantou/Meziantou.Polyfill/commit/99b75a6e175efc313ac866bb29e5519d25c1d76e