I'm currently using Teamcity 7.x, and we're not ready to upgrade yet.
For our internal NuGet packages, my specifications are relative to the location of the nuspec file (as per default), but when run in the NuGet Pack runner, they must be relative to the build checkout directory.
For example, I should have a nuspec containing this:
<files>
<file src="Content\**" target="content" />
</files>
but that won't work in TeamCity as it automatically adds a BasePath option, so I have to change my nuspec to this:
<files>
<file src="Source\Project\Content\**" target="content" />
</files>
How can this be avoided? I can have my specifications changed, but I have a number of packages created in a single build step, and I'm trying to use the new -IncludeReferencedProjects option, but that fails as it looks in the wrong place.
The BasePath option is not needed, so why does it default to the build checkout directory?