-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PolySharp.SourceGenerators.PolyfillGenerator is not generating files #74
Comments
Forgot to mention we have defined LangVersion 11.0 in our Directory.Build.props file. |
I have repro! Tl;dr if a dependency project has PolySharp installed and uses InternalsVisibleTo("App"), then polyfills are not generated in App even when PolySharp is also included, but in this case C#11 features work becuase internals from dependency project are used. How to solve it? Ideally generate polyfills even if there are polyfills available through InternalsVisibleTo from other asembly. |
Looks like a duplicate of #50 |
In our solution of about 200 projects, all targeting .NET 4.7.2 and using SDK Style format, one project does not have any polyfills generated, see the screenshot. I have no idea why it's not working for this one specific project.
It should generate polyfills in all projects.
Is there a way how can I debug this package or polyfill? Is there any logging that I can read or exception that is thrown?
System info
Polysharp 1.13.2, VS 2022 17.6.2, project targeting .NET 4.7.2 in SDK style.
(Have you tested Polysharp in .NET 4.7.2 SDK style projects?)
Additional context (optional)
Note in each of our projects I can see this error/warning in the Analyzers section: POLYSP0003 Unsupported C# version, even though it works in all but one project. Possibly false positive?
The text was updated successfully, but these errors were encountered: