Closed G1Vh closed 2 years ago
Thanks for the report. For 4: can you paste a minimal code example here?
using AutomaticInterfaceAttribute;
namespace TestNuget;
[GenerateAutomaticInterface] public class Test: ITest { public string GetString() { return "works"; } }
If class with attribute has file-scoped namespace compilation will fail.
CSC: Warning CS8785 : Generator 'AutomaticInterfaceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'NullReferenceException' with message 'Object reference not set to an instance of an object.'
How to test:
TestNuget
projectTargetFramework
tonet6.0
Test.cs