Skip to content

Provides SourceGenerator option from AdditionalFiles #1650

@neuecc

Description

@neuecc

Source Generator in Unity, can not provide option from AnalyzerConfigOptions so can not configure any options.
If you want to deprecated mpc (which I agree with), we must provide configuration for Unity.

MemoryPack has made that mistake and is currently unable to provide the option from Unity, despite requests.
Cysharp/MemoryPack#133

However, Unity supports AdditionalFiles.
Usage differs from the standard .NET, probably in two ways.

My suggestion would be to allow the settings to be described in JSON and include that in Parse as well.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions