You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'd like to express my immense gratitude to the contributors of dotnet/templating! Your tool has been incredibly useful to me, and I've been enjoying using it. However, I've encountered a challenge that I could use some help with.
Within this file, there's a key named "outputTemplate", and unfortunately, it gets renamed too, which is not what I intend:
{
"Serilog": {
"MinimumLevel": "Information",
"WriteTo": [
{
"Name": "Console",
"Args": {
"formatter": "",
// In this key, the word "Template" gets renamed, but I do not want this to occur.
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}"
}
}
]
},
"ConnectionStrings": {
"DefaultConnection": "",
}
}
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?
Describe the solution you'd like.
Excluding a File from Renaming in Template Generation
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'd like to express my immense gratitude to the contributors of dotnet/templating! Your tool has been incredibly useful to me, and I've been enjoying using it. However, 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?
Describe the solution you'd like.
Excluding a File from Renaming in Template Generation
Additional context
No response
The text was updated successfully, but these errors were encountered: