@@ -229,6 +229,7 @@ jobs:
229
229
}
230
230
231
231
- name : Test template package
232
+ shell : pwsh
232
233
run : |
233
234
dotnet new install ./nupkg/CleanArchitecture.FullStack.Template.${{ env.TEMPLATE_VERSION }}.nupkg
234
235
mkdir test-project
@@ -240,26 +241,29 @@ jobs:
240
241
# Get full help to see available parameters
241
242
dotnet new cleanarch-fullstack --help
242
243
243
- # Try multiple parameter formats to see which one works
244
- # First try with standard --param value format
245
- dotnet new cleanarch-fullstack --Organization TestCompany --ProjectName TestProject || (
246
- # If that fails, try with -p:param=value format (newer .NET SDK style)
247
- echo "Standard parameter format failed, trying -p: format..."
244
+ # Try with standard format first
245
+ $result = dotnet new cleanarch-fullstack --Organization TestCompany --ProjectName TestProject
246
+ # If that fails, try with -p: format
247
+ if (-not $?) {
248
+ Write-Host "Standard parameter format failed, trying -p: format..."
248
249
dotnet new cleanarch-fullstack -p:Organization=TestCompany -p:ProjectName=TestProject
249
- )
250
+ }
250
251
251
252
# List files to verify creation
252
253
dir
253
254
254
255
- name : Test template package with organization
256
+ shell : pwsh
255
257
run : |
256
258
mkdir test-project-with-org
257
259
cd test-project-with-org
258
260
259
261
# Create project with fallback options
260
- dotnet new cleanarch-fullstack --organization TestCompany --projectName TestProjectWithOrg || (
262
+ dotnet new cleanarch-fullstack --organization TestCompany --projectName TestProjectWithOrg
263
+ if (-not $?) {
264
+ Write-Host "Trying alternative parameter format"
261
265
dotnet new cleanarch-fullstack -p:Organization=TestCompany -p:ProjectName=TestProjectWithOrg
262
- )
266
+ }
263
267
264
268
# List files to verify creation
265
269
dir
0 commit comments