OutputPath issues

See this issue all over the web, but no solution to it.

I have a web project with several configurations.  The release configuration works fine, the "test" configuration fails with output path issues and I don't see why.  Here is the error message in the log.

[13:55:03]Step 6/14: Package Test (MSBuild) (2s)

[13:55:05][Step 6/14] src\myproject.csproj.teamcity: Build targets: Build;Package

[13:55:05][src\myproject.csproj.teamcity] _CheckForInvalidConfigurationAndPlatform

[13:55:05][_CheckForInvalidConfigurationAndPlatform] Error

[13:55:05][Error] c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(483,  9): The OutputPath property is not set for project  'myproject.csproj.teamcity'.  Please check to make sure  that you have specified a valid combination of Configuration and  Platform for this project.  Configuration='Test'  Platform='AnyCPU'.   You may be seeing this message because you are trying to build a project  without a solution file, and have specified a non-default Configuration  or Platform that doesn't exist for this project.

[13:55:05][Step 6/14] Step Package Test (MSBuild) failed

Here is the FAILING test configuration:
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Test|AnyCPU' ">

Here is the WORKING release configuration:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
1 comment
Comment actions Permalink


Could you please try to build your solution with MSBuild from console. Does that work? To do it run msbuild.exe in the folder where your colution is (you can look up the command line used by TeamCity in the build log).


Please sign in to leave a comment.