Search code examples
reinforced-typings

Configure reinforced typings to export one type to multiple target directory


I'm using fluent configuration to export my c# DTOs to typescript classes. I have two web projects and I would like to export my DTOs to both projects.

ConfigurationBuilder has extension method ExportAsClasses but it allows to specify target file name only once.


Solution

  • Unfortunately, RT does not support such functionality. But you can set up post-build event for your project that will copy generated files wherever you need.