0

Nant build that calls MSBuild: works via command runner but not via Nant?

Hi,

I'm building an existing project via a Nant build, which invokes the Nant-contrib msbuild task to compile individual assembly .csproj files.

I can make it all compile when I use the Command Line runner to invoke Nant. When I use the Nant runner to invoke Nant, it behaves differently:

-



: Complete build sequence is
: msbuild (12s)
: Starting MSBuild...
: Starting 'c:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe (@"D:\work\projects\MyProject\trunk\Assemblies\MyProject.Core\MyProject.Core.csproj.teamcity.msbuild.tcargs")' in 'D:\work\projects\MyProject\trunk'
: Project "MyProject.Core.csproj.teamcity.patch.tcprojx" (default targets): (10s)
: [Project "MyProject.Core.csproj.teamcity.patch.tcprojx" (default targets):] Building with tools version "2.0".
: [Project "MyProject.Core.csproj.teamcity.patch.tcprojx" (default targets):] Target "_CheckForInvalidConfigurationAndPlatform" in project "MyProject.Core.csproj.teamcity.patch.tcprojx" (<1s)
: [Target "_CheckForInvalidConfigurationAndPlatform" in project "MyProject.Core.csproj.teamcity.patch.tcprojx"] Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
: [Target "_CheckForInvalidConfigurationAndPlatform" in project "MyProject.Core.csproj.teamcity.patch.tcprojx"] Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
: [Target "_CheckForInvalidConfigurationAndPlatform" in project "MyProject.Core.csproj.teamcity.patch.tcprojx"] Using "Message" task from assembly "Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
: [Target "_CheckForInvalidConfigurationAndPlatform" in project "MyProject.Core.csproj.teamcity.patch.tcprojx"] Configuration=Debug
-



What are the tcproxj and tcargs files for? It looks to me like this bevahiour shouldn't be taking place.

Running TeamCity Professional Version 3.1.2 (build 6881)

Thanks

Julian

5 comments

Please sign in to leave a comment.