Skip to content

Commit 6a4939b

Browse files
committed
updated how parameter passiong
1 parent bf1fc8f commit 6a4939b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/template-publish.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -235,18 +235,13 @@ jobs:
235235
mkdir test-project
236236
cd test-project
237237
238-
# Verify template installed correctly
239-
dotnet new --list | findstr "cleanarch"
240-
241-
# Get full help to see available parameters
242-
dotnet new cleanarch-fullstack --help
243-
244238
# Try with standard format first
245-
$result = dotnet new cleanarch-fullstack --Organization TestCompany --ProjectName TestProject
246-
# If that fails, try with -p: format
239+
dotnet new cleanarch-fullstack --Organization TestCompany --ProjectName TestProject
240+
# If that fails, try with alternative formats
247241
if (-not $?) {
248-
Write-Host "Standard parameter format failed, trying -p: format..."
249-
dotnet new cleanarch-fullstack -p:Organization=TestCompany -p:ProjectName=TestProject
242+
Write-Host "Standard parameter format failed, trying alternative formats..."
243+
# Try with no colon after -p
244+
dotnet new cleanarch-fullstack -p Organization=TestCompany -p ProjectName=TestProject
250245
}
251246
252247
# List files to verify creation
@@ -262,6 +257,7 @@ jobs:
262257
dotnet new cleanarch-fullstack --organization TestCompany --projectName TestProjectWithOrg
263258
if (-not $?) {
264259
Write-Host "Trying alternative parameter format"
260+
# Use separate -p parameters, one for each property
265261
dotnet new cleanarch-fullstack -p:Organization=TestCompany -p:ProjectName=TestProjectWithOrg
266262
}
267263

0 commit comments

Comments
 (0)