diff --git a/src/Templates/src/templates/maui-blazor/.template.config/template.json b/src/Templates/src/templates/maui-blazor/.template.config/template.json
index deed6b156168..4f6a12e4e065 100644
--- a/src/Templates/src/templates/maui-blazor/.template.config/template.json
+++ b/src/Templates/src/templates/maui-blazor/.template.config/template.json
@@ -55,8 +55,7 @@
"applicationId": {
"type": "parameter",
"description": "Overrides the $(ApplicationId) in the project",
- "datatype": "string",
- "replaces": "com.companyname.MauiApp.1"
+ "datatype": "string"
},
"msExtensionsVersion": {
"type": "parameter",
@@ -85,6 +84,39 @@
"type": "generated",
"generator": "guid",
"replaces": "$guid9$"
+ },
+ "nameToLower":{
+ "type": "generated",
+ "generator": "casing",
+ "parameters": {
+ "source" : "name",
+ "toLower": true
+ }
+ },
+ "defaultAppId":{
+ "type": "generated",
+ "generator": "join",
+ "parameters": {
+ "symbols": [
+ {
+ "type": "const",
+ "value": "com.companyname."
+ },
+ {
+ "type": "ref",
+ "value": "nameToLower"
+ }
+ ]
+ }
+ },
+ "finalAppId":{
+ "type":"generated",
+ "generator": "coalesce",
+ "parameters": {
+ "sourceVariableName": "applicationId",
+ "fallbackVariableName": "defaultAppId"
+ },
+ "replaces": "com.companyname.mauiapp"
}
},
"defaultName": "MauiApp1"
diff --git a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj
index f7b1dcf1c3d4..52c193b565ab 100644
--- a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj
+++ b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj
@@ -16,7 +16,7 @@
MauiApp.1
- com.companyname.mauiapp._1
+ com.companyname.mauiapp
1.0
diff --git a/src/Templates/src/templates/maui-mobile/.template.config/template.json b/src/Templates/src/templates/maui-mobile/.template.config/template.json
index 600e4fae07d2..cb5ae8f64ab2 100644
--- a/src/Templates/src/templates/maui-mobile/.template.config/template.json
+++ b/src/Templates/src/templates/maui-mobile/.template.config/template.json
@@ -59,8 +59,7 @@
"applicationId": {
"type": "parameter",
"description": "Overrides the $(ApplicationId) in the project",
- "datatype": "string",
- "replaces": "com.companyname.MauiApp.1"
+ "datatype": "string"
},
"msExtensionsVersion": {
"type": "parameter",
@@ -89,6 +88,39 @@
"type": "generated",
"generator": "guid",
"replaces": "$guid9$"
+ },
+ "nameToLower":{
+ "type": "generated",
+ "generator": "casing",
+ "parameters": {
+ "source" : "name",
+ "toLower": true
+ }
+ },
+ "defaultAppId":{
+ "type": "generated",
+ "generator": "join",
+ "parameters": {
+ "symbols": [
+ {
+ "type": "const",
+ "value": "com.companyname."
+ },
+ {
+ "type": "ref",
+ "value": "nameToLower"
+ }
+ ]
+ }
+ },
+ "finalAppId":{
+ "type":"generated",
+ "generator": "coalesce",
+ "parameters": {
+ "sourceVariableName": "applicationId",
+ "fallbackVariableName": "defaultAppId"
+ },
+ "replaces": "com.companyname.mauiapp"
}
},
"defaultName": "MauiApp1"
diff --git a/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj b/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj
index 6b7953502dcb..052e2f46f019 100644
--- a/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj
+++ b/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj
@@ -15,7 +15,7 @@
MauiApp.1
- com.companyname.mauiapp._1
+ com.companyname.mauiapp
1.0