Support of parameters in custom project templates

Hi,

I would like to know if Rider support (or will support) the options in the case of custom project templates.

For example, in the case of this template (from : https://github.com/dotnet/dotnet-template-samples/blob/master/04-parameter-from-list/MyProject.Con/.template.config/template.json )

{
"$schema": "http://json.schemastore.org/template",
"author": "Contoso",
"classifications": [ "Console" ],
"name": "Contoso Sample 04",
"identity": "MyProject.04.Sample.CSharp",
"groupIdentity":"MyProject.04.Sample",
"shortName": "sample04",
"tags": {
"language": "C#",
"type":"project"
},
"preferNameDirectory": true,
"sourceName": "MyProject.Con",
"symbols":{
"CopyrightName": {
"type": "parameter",
"defaultValue": "(c) Contoso",
"replaces":"(copyright)"
},
"Title": {
"type": "parameter",
"defaultValue": "Contoso Sample",
"replaces":"My App Title"
},
"EnableContactPage":{
"type": "parameter",
"dataType":"bool",
"defaultValue": "false"
},
"BackgroundColor":{
"type":"parameter",
"datatype": "choice",
"defaultValue":"aliceblue",
"choices": [
{
"choice": "aliceblue",
"description": "Alice Blue"
},
{
"choice": "dimgray",
"description":"dimgray"
},
{
"choice":"skyblue",
"description":"skyblue"
}
],
"replaces":"skyblue"
}
},
"sources": [
{
"modifiers": [
{
"condition": "(!EnableContactPage)",
"exclude": [
"contact.txt"
]
}
]
}
]
}

would show the simple parameters (those without dataType) as a textbox, the bool data type parameters as a checkbox, the choice data type parameters as a drop down list, etc.

Currently, the creation dialog box simply use the default value without the possibility to change the value.

Regards,

Julien

0
1 comment

Hello Julien Tschäppät,

Rider does not currently support parameters in custom project templates, but we have a corresponding feature request on the tracker. Please upvote the linked issue to demonstrate your interest in this feature.

1

Please sign in to leave a comment.