Closed glennawatson closed 3 weeks ago
Just an additional solution (not preferred):
It seems that using PolySharp works fine, but isn't as "complete" as Polyfill. My assumption is, that the source generator of PolySharp only emits the IsExternalInit
class if it isn't already defined in the project. This may or may not cause problems, when you have a dependency (library) which defines IsExternalInit
publicly (due to - for example - a set PolyPublic
option for Polyfill).
Normally I use PrivateAssets="all"
and then normally make use that IsExternalInit is internal only.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
As per the comment below we likely should remove the ExternalInit generation in our code, and opt for instead readme.md file changes to suggest the user use one of the different libraries that provide it like PolyFill or ExternalInit etc.
Originally posted by @fubar-coder in https://github.com/reactiveui/ReactiveUI.SourceGenerators/issues/83#issuecomment-2439771862