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' ">
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>bin\</OutputPath>
    <DefineConstants>TRACE;Test</DefineConstants>
    <DebugType>full</DebugType>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <ErrorReport>prompt</ErrorReport>
    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
    <DesktopBuildPackageLocation>..\..\build\Test\myproject.zip</DesktopBuildPackageLocation>
    <DeployIisAppPath>Afg.Ammc.ParentIssuer.Test</DeployIisAppPath>
    <PublishDatabases>false</PublishDatabases>
    <Optimize>true</Optimize>
  </PropertyGroup>





Here is the WORKING release configuration:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DeployIisAppPath>myproject</DeployIisAppPath>
    <DesktopBuildPackageLocation>..\..\build\production\myproject.zip</DesktopBuildPackageLocation>
  </PropertyGroup>
1 comment
Comment actions Permalink

Hi,

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).

0

Please sign in to leave a comment.