I am attempting to customize two aspects of code generation for a c# client:
- The name of a model (
PersontoPersonCustomizedvia the[CodeGenModel]attribute - Suppressing the generation of a method (
AddPersonAsync) via the[CodeGenSuppress]attribute.
Open API file / command / options are included in the repro here: https://github.com/rquackenbush/AutoRestCustomizationRepro
Expected behavior
- The
Personmodel should be generated asPersonCustomized - The
AddPersonAsyncmethod should not be generated.
Actual Behavior
- The
Personmodel is being generated asPerson - The
AddPersonAsyncmethod is still being generated.
Question
How do I get the customizations to apply?
Ahh - you have to specify the folder differently using
$(this-folder):