RgPublish.exe /source doesn't understand quotes escaped path
abatishchev
Posts: 8
Having the following parameter in TeamCity build step (.NET runner):
leads to an error:/source="%teamcity.build.checkoutDir%\MyProj.csproj"
Removing quotes (what is unusual for Windows-based development) makes build run fine.[02:30:18][Step 7/7] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[02:30:18][Step 7/7] in directory: C:\TeamCity\buildAgent\work\403d3ec57312a972
[02:30:20][Step 7/7] Red Gate Package Publishing Tool version 2.0.4.1
[02:30:20][Step 7/7] Invalid source argument:
[02:30:20][Step 7/7] '"C:\TeamCity\buildAgent\work\403d3ec57312a972\MyProject.csproj"' is not a valid path.
[02:30:21][Step 7/7] Process exited with code 1
[02:30:21][Step 7/7] Step RgPublish (.NET Process Runner) failed
Comments
My guess is that TeamCity implicitly wraps it in quotes internally somehow when passing the parameter?
Redgate Software