Skip to content

Commit 07f062b

Browse files
JusterZhuclaude
andcommitted
fix: quote version variables in dotnet pack step to prevent MSB1008
The dotnet pack command was passing version values without quotes, so if the version contained spaces (e.g. "10.5.0-beta.4"), the second token was interpreted as an additional project file, causing MSB1008: Only one project can be specified. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 031ace0 commit 07f062b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dotnet-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
dotnet pack ./src/c#/$project/$project.csproj `
4343
-c Release `
4444
-o ./nupkgs `
45-
-p:Version=${{ github.event.inputs.version }} `
46-
-p:PackageVersion=${{ github.event.inputs.version }} `
45+
-p:Version='${{ github.event.inputs.version }}' `
46+
-p:PackageVersion='${{ github.event.inputs.version }}' `
4747
--no-build # 避免重复构建,使用已生成的文件
4848
}
4949
shell: pwsh

0 commit comments

Comments
 (0)