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
When the class is placed in the global namespace, the follow error is produced:
Generator 'ClassGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName '.ActorExtensions.BornIn.g.cs' contains an invalid character '<' at position 0. (Parameter 'hintName')'.
To Reproduce
Apply Fluentify to a class or record that is not declared within the scope of a namespace.
Expected behavior
The extensions should be generated in the same way as it is when the class belongs to an explicitly defined namespace.
Environment (please complete the following information):
* ## Changed
- The fully qualified type information for the subject upon which Fluentify has been placed is now captured and utilized when generating extensions, thereby enabling support for nest classes.
#3
* ## Changed
- The fully qualified type information for the subject upon which Fluentify has been placed is now captured and utilized when generating extensions, thereby enabling support for nest classes (#3).
- Utilized Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing to improve the quality of the Generator tests.
## Fixed
- The generated code files for classes now apply a conditional preprocessor directive to #nullable calls to prevent compilation failure in .NET Standard 2.0 projects.
- The generated extensions no longer call ArgumentNullException.ThrowIfNull to prevent compilation failure in .NET Standard 2.0 projects.
- The generated extensions no longer use pattern matching to prevent compilation failure in .NET Standard 2.0 projects.
- The generated constructor for records now applies a preprocessor directive to the SetRequiredMembers attribute to prevent compilation failure in .NET 6 projects (#5).
* ## Fixed
- The generated code files no longer include the namespace if the containing namespace is global (#6).
* Refactored unit tests to utilize the same snippets for coarse and fine grain API tests
Describe the bug
When the class is placed in the global namespace, the follow error is produced:
Generator 'ClassGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName '.ActorExtensions.BornIn.g.cs' contains an invalid character '<' at position 0. (Parameter 'hintName')'.
To Reproduce
Apply Fluentify to a class or record that is not declared within the scope of a namespace.
Expected behavior
The extensions should be generated in the same way as it is when the class belongs to an explicitly defined namespace.
Environment (please complete the following information):
Additional context
Copied from comment
https://www.linkedin.com/feed/update/urn:li:groupPost:40949-7225261492227485696?commentUrn=urn%3Ali%3Acomment%3A%28groupPost%3A40949-7225261492227485696%2C7225710491216572416%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287225710491216572416%2Curn%3Ali%3AgroupPost%3A40949-7225261492227485696%29
The text was updated successfully, but these errors were encountered: