Excluding Types from DTO Generation


we want to exclude some types from DTO generation with ssutil. We figured out that by applying the [InternalOnly] attribute we can do this, but only if we run it against a deployed service.
We actually want to generate the DTOs on our local machines. Is there any other way to prevent certain types from being generated than the [InternalOnly] attribute ?

Thanks for your help

Yeah the ExcludeTypes Header option should let you do exactly this.

Yes, we are aware of that option. The problem is that we don’t want to expose these endpoints for type generation at all. The [InternalOnly] attribute is doing exactly that, but then we can’t generate the types on our local machines.

Ok you can also use the [Exclude] attribute:

public class HideFromMetadata { ... }

Cool. That’s perfect. Exactly what we need.