I have setup a test project for building a .Net 6 application with a local Windows Runner setup on my machine.
The issue I found is that when the path where the runner is contains special characters (in my case ä/ö/ü) the runner fails to run to completion and reports probelms with -File-Parameter of the following scripts:
- tmp\setupArtifacts{...}.ps1
- tmp\setupCaches{...}.ps1
- tmp\powershellScript{...}.ps1
- tmp\powershellAfterScript{...}.ps1
The current solution is to move the runner to a path that does not contain special characters. In that case the pipeline runs without issues.
Here my yml:
pipelines:
custom:
customPipelineWithRunnerAndCache:
- step:
name: Build and Test
runs-on:
- self.hosted
- windows
script:
- cd TestApp
- dotnet restore
- dotnet build --no-restore --configuration Release