Provides SourceGenerator option from AdditionalFiles · Issue #1650 · MessagePack-CSharp/MessagePack-CSharp · GitHub
Skip to content

Provides SourceGenerator option from AdditionalFiles #1650

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
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions