IT:AD:TeamCity:Hg:TroubleShooting
#### Issues and Resolutions ####
Test connection failed ... the system cannot find the file specified- Ensure that Hg is installed on the server.
- Error:
Test connection failed ... Cannot run program "C:\Program Files\TortoiseHg\hg.exe...- We're so used to having it installed on the Client…but is it installed on the Server?
- Does the TeamCity account (DEV\258-TeamCity-Svc) have permissions to Execute that .exe? TeamCity, behind proxy, needs a little help to get out.
- I Used
`C:\Program Files\TortoiseHg\hg --config http_proxy.host=CORPwgpx1:80 --config http_proxy.user=DEV\Ciel --config http_proxy.passwd=M0.......1`
* Fails building MVC Apps…
- Did you forget to install MVC3 on the Server?
##
Scenario
Build is failing in a Nuget Build Task, with an error similar to:
[pack] Starting: ...cmd.exe /c ...NuGet.exe pack ...xact.data.db.csproj ... [pack] in directory: ...CS.FF.XAct.Lib [pack] Attempting to build package from 'xact.data.db.csproj'. [pack] Packing files from '...\xact.data.db\bin\Debug'. [pack] Using 'xact.data.db.nuspec' for metadata. [pack] Found packages.config. Using packages listed as dependencies [pack] Circular dependency detected 'XAct.Core 0.0.89 => XAct.Data 0.0.89 => XAct.Core 0.0.89'. [pack] Process exited with code 1
Solution
I'm not 100% sure of why, but the projects had a .projects file mentioning the dependencies, and i had listed them in the *.nuspec file. I think this gets Nuget all riled up. Removed them, so that the single point of truth is the *.packages file, and the problem seems to have gone away. —