Closed tanguy-c closed 1 year ago
I use something like this to slugify controller names in routes (ex: PetShop → pet-shop) https://learn.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-6.0#parameter-transformers-1 In order to generate the typescript services, I have to slugify the controller name (or maybe there's another way ?) Should I create a custom CLI for this ? (is it the use case ?)
I can try to take a look at this problem and send a PR, but I don't know to build NTypewriter.SourceGenerator using local code instead of the '0.4.1' nuget.
Thank you!
Edit: I found a way to build with a local nuget.config
so here is a PR. Let me know if you want a test on this
Hello,
Code generation on CI is not working properly with Regex (it works great in Visual Studio) I have the following error :
I suppose it has to be added to
NTypewriter.SourceGenerator/NTypewriter.SourceGenerator.csproj
(the same way as for System.Text.Json) I use Regex to "slugify" my routesThanks