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.
Source Generator in Unity, can not provide option from
AnalyzerConfigOptionsso 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.
additional compiler arguments, and enter/additionalfiles:xxxMy suggestion would be to allow the settings to be described in JSON and include that in Parse as well.