Fixes issue with dotnet new template if you did not specify a connection string it was adding an empty one in appsettings.dev

This commit is contained in:
Warren Buckley
2021-09-15 11:55:53 +01:00
parent ac34a20db2
commit 465d730616
2 changed files with 6 additions and 0 deletions

View File

@@ -282,6 +282,10 @@
]
}
},
"HasConnectionString":{
"type": "computed",
"value": "(ConnectionString != \"\")"
},
"HasNoNodesViewPath":{
"type": "computed",
"value": "(NoNodesViewPath != \"\")"

View File

@@ -17,9 +17,11 @@
}
]
},
//#if (HasConnectionString)
"ConnectionStrings": {
"umbracoDbDSN": "CONNECTION_FROM_TEMPLATE"
},
//#endif
"Umbraco": {
"CMS": {
"Content": {