【发布时间】:2019-01-06 19:00:53
【问题描述】:
我在解决方案目录中创建 .template.config/template.json 文件并运行此命令 dotnet new --install {Solution Path},它会创建模板,但是当我从该模板创建新项目时,它只更改了 web 的名称项目未更改其他项目名称。
template.json 文件
<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>
【问题讨论】:
标签: asp.net-core .net-core project-template