Merge pull request #11103 from umbraco/v9/bugfix/dotnet-new-template-connectionstring

Fixes issue with dotnet new template if you did not specify a connection string
This commit is contained in:
Andy Butland
2021-09-15 14:23:59 +02:00
committed by GitHub
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": {