You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In the project, if there is a unique class with YamlStaticContext attribute, and this class is in the global namespace, while there are other classes with YamlSerializable attribute, the compilation will fail.
To Reproduce
Create a C# console project and enable NativeAoT publish. ( Dont trigger Do not use top-level statements)
Add necessary package from nuget. (YamlDotNet and Vecc.YamlDotNet.Analyzers.StaticGenerator)
Describe the bug
In the project, if there is a unique class with
YamlStaticContext
attribute, and this class is in the global namespace, while there are other classes withYamlSerializable
attribute, the compilation will fail.To Reproduce
Do not use top-level statements
)YamlDotNet
andVecc.YamlDotNet.Analyzers.StaticGenerator
)Program.cs
Build output here
The text was updated successfully, but these errors were encountered: