Skip to content

Commit ead9757

Browse files
committed
Handle !UseWebAssembly better
1 parent ccaacd0 commit ead9757

File tree

1 file changed

+20
-2
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/.template.config

1 file changed

+20
-2
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/.template.config/template.json

+20-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
]
131131
},
132132
{
133-
"condition": "(IndividualLocalAuth && UseLocalDB)",
133+
"condition": "(IndividualLocalAuth && UseLocalDB && UseWebAssembly)",
134134
"rename": {
135135
"BlazorWeb-CSharp/Data/SqlServer/": "BlazorWeb-CSharp/Data/Migrations/"
136136
},
@@ -139,13 +139,31 @@
139139
]
140140
},
141141
{
142-
"condition": "(IndividualLocalAuth && !UseLocalDB)",
142+
"condition": "(IndividualLocalAuth && UseLocalDB && !UseWebAssembly)",
143+
"rename": {
144+
"BlazorWeb-CSharp/Data/SqlServer/": "Data/Migrations/"
145+
},
146+
"exclude": [
147+
"BlazorWeb-CSharp/Data/SqlLite/**"
148+
]
149+
},
150+
{
151+
"condition": "(IndividualLocalAuth && !UseLocalDB && UseWebAssembly)",
143152
"rename": {
144153
"BlazorWeb-CSharp/Data/SqlLite/": "BlazorWeb-CSharp/Data/Migrations/"
145154
},
146155
"exclude": [
147156
"BlazorWeb-CSharp/Data/SqlServer/**"
148157
]
158+
},
159+
{
160+
"condition": "(IndividualLocalAuth && !UseLocalDB && !UseWebAssembly)",
161+
"rename": {
162+
"BlazorWeb-CSharp/Data/SqlLite/": "Data/Migrations/"
163+
},
164+
"exclude": [
165+
"BlazorWeb-CSharp/Data/SqlServer/**"
166+
]
149167
}
150168
]
151169
}

0 commit comments

Comments
 (0)