Replies: 1 comment
-
There are ways that you can instruct the Template Engine to not perform the replacement on But I would say that having a sourceName of If you can change the sourceName that would be the best approach, but if there is some constraint preventing that, take a look at using |
Beta Was this translation helpful? Give feedback.
-
Hi, I've encountered a challenge that I could use some help with.
I've created this template, which can be found here:
https://github.com/bohems/service-template
Subsequently, I generate a template using the following command:
dotnet new service -n ServiceName -F net8.0
This results in all instances of '
Template
' being replaced with 'ServiceName
' which is exactly what I want.However, within this repository, there's a specific file I'm concerned about:
https://github.com/bohems/service-template/blob/main/Template/Tools/Template.DbSeeder/seed-settings.json
Within this file, there's a key named "
outputTemplate
", and unfortunately, it gets renamed too, which is not what I intend:Could you provide guidance on how to address this issue, perhaps a way to exclude this file from being renamed, or a workaround to prevent renaming of that particular key?
Beta Was this translation helpful? Give feedback.
All reactions