I create .template.config/template.json file in solution directory and run this command dotnet new --install {Solution Path}, it create template but when i create new project from this template it only changed the name of web project not changed the other projects name.
template.json file
<pre>{
"$schema": "http://json.schemastore.org/template",
"author": "Muhammad Ali",
"classifications": [ "NcoreReferences" ],
"identity": "NcoreReferences",
"name": "NcoreReferences",
"shortName": "NcoreReferences",
"tags": {
"language": "C#",
"type":"solution"
},
"version":"1.0.0.0",
"preferNameDirectory":true,
"symbols": {
"projectname": {
"type": "parameter",
"dataType": "string",
"fileRename": "NcoreReferences",
"replaces": "NcoreReferences"
}
},
"sources": [
{
"modifiers": [
{
"exclude": ["packages/**",".vs/**"]
}
]
}
] }</pre>