@@ -237,9 +237,16 @@ jobs:
237237 # Verify template installed correctly
238238 dotnet new --list | findstr "cleanarch"
239239
240- # Create project from template with parameters from template.json
241- # Test both with camelCase and PascalCase to verify both work
242- dotnet new cleanarch-fullstack --Organization TestCompany --ProjectName TestProject
240+ # Get full help to see available parameters
241+ dotnet new cleanarch-fullstack --help
242+
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..."
248+ dotnet new cleanarch-fullstack -p:Organization=TestCompany -p:ProjectName=TestProject
249+ )
243250
244251 # List files to verify creation
245252 dir
@@ -249,8 +256,10 @@ jobs:
249256 mkdir test-project-with-org
250257 cd test-project-with-org
251258
252- # Create project from template with organization parameter
253- dotnet new cleanarch-fullstack --organization TestCompany --projectName TestProjectWithOrg
259+ # Create project with fallback options
260+ dotnet new cleanarch-fullstack --organization TestCompany --projectName TestProjectWithOrg || (
261+ dotnet new cleanarch-fullstack -p:Organization=TestCompany -p:ProjectName=TestProjectWithOrg
262+ )
254263
255264 # List files to verify creation
256265 dir
@@ -260,8 +269,10 @@ jobs:
260269 mkdir test-project-no-org
261270 cd test-project-no-org
262271
263- # Create project from template without organization parameter
264- dotnet new cleanarch-fullstack --projectName TestProjectNoOrg
272+ # Create project with fallback options
273+ dotnet new cleanarch-fullstack --projectName TestProjectNoOrg || (
274+ dotnet new cleanarch-fullstack -p:ProjectName=TestProjectNoOrg
275+ )
265276
266277 # List files to verify creation
267278 dir
@@ -271,12 +282,14 @@ jobs:
271282 mkdir test-project-no-angular
272283 cd test-project-no-angular
273284
274- # Create project from template without Angular
275- dotnet new cleanarch-fullstack --organization TestCompany --projectName TestProjectNoAngular --includeAngular false
285+ # Create project with fallback options
286+ dotnet new cleanarch-fullstack --organization TestCompany --projectName TestProjectNoAngular --includeAngular false || (
287+ dotnet new cleanarch-fullstack -p:Organization=TestCompany -p:ProjectName=TestProjectNoAngular -p:IncludeAngular=false
288+ )
276289
277290 # Verify that frontend directory is not created
278291 if (Test-Path "./frontend") {
279- Write-Error "Frontend directory should not exist when includeAngular is false"
292+ Write-Error "Frontend directory should not exist when IncludeAngular is false"
280293 exit 1
281294 }
282295
@@ -286,8 +299,12 @@ jobs:
286299 - name : Test template package with default folder naming
287300 shell : pwsh
288301 run : |
289- # Test with organization - should create folder YourCompany.TestProject
302+ # Test with organization using fallback syntax
290303 dotnet new cleanarch-fullstack --Organization YourCompany --ProjectName TestProject
304+ if (-not $?) {
305+ Write-Host "Trying alternative parameter format"
306+ dotnet new cleanarch-fullstack -p:Organization=YourCompany -p:ProjectName=TestProject
307+ }
291308
292309 if (Test-Path "YourCompany.TestProject") {
293310 Write-Host "✅ YourCompany.TestProject folder created successfully"
@@ -299,6 +316,10 @@ jobs:
299316
300317 # Test without organization - should create folder TestProjectNoOrg
301318 dotnet new cleanarch-fullstack --ProjectName TestProjectNoOrg
319+ if (-not $?) {
320+ Write-Host "Trying alternative parameter format"
321+ dotnet new cleanarch-fullstack -p:ProjectName=TestProjectNoOrg
322+ }
302323
303324 if (Test-Path "TestProjectNoOrg") {
304325 Write-Host "✅ TestProjectNoOrg folder created successfully"
@@ -309,7 +330,11 @@ jobs:
309330 }
310331
311332 # Test with explicit output folder
312- dotnet new cleanarch-fullstack --Organization YourCompany --ProjectName TestProject -o CustomFolder
333+ dotnet new cleanarch-fullstack --Organization YourCompany --ProjectName TestProject --output CustomFolder
334+ if (-not $?) {
335+ Write-Host "Trying alternative parameter format"
336+ dotnet new cleanarch-fullstack -p:Organization=YourCompany -p:ProjectName=TestProject -o CustomFolder
337+ }
313338
314339 if (Test-Path "CustomFolder") {
315340 Write-Host "✅ CustomFolder created successfully"
0 commit comments