Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Can't reference nested class or enum in an annotation #222

Open
linelson opened this issue Sep 30, 2019 · 1 comment
Open

Can't reference nested class or enum in an annotation #222

linelson opened this issue Sep 30, 2019 · 1 comment

Comments

@linelson
Copy link

A customer has a parameter annotation of the following format:

Where SomeOtherClass is a nested enum or class defined within the class SomeClass, for example:

/// <summary>
/// SomeClass
/// </summary>
public class SomeClass {
     /// <summary>
     /// SomeOtherClass
     /// </summary>
     public class SomeOtherClass { SomeOtherClass() {} } 

    /// <summary>
    /// SomeEnum
   /// </summary>
   public enum SomeEnum {
       SomeEnumProperty
   }
}

When generating the document, generation will fail with an 'UnableToGenerateAllOperationsExcepion', with ExceptionType: TypeLoadException and message: Type "SomeNamespace.SomeClass.SomeOtherClas" could not be found. Ensure that it exists in one of the following assemblies: SomeNamespace.dll.

@allenbrooks55
Copy link

Same here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants