Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The OutputPath property is not set for project TFS2012

Tags:

tfs

tfsbuild

I have a build in our Team Foundation server which gives this warring:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (610): The OutputPath property is not set for project 'Plugin.DeploymentTool.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Release' Platform='x86'. 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.

I can't find any solution or why i get this error. But then i look at the generated zip file, the Binary folder are empty. I have tried to use the x86, x64 and Any CPU, to se if there are are any difference, which there are not.

If i look into the project file, it looks okay.

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
like image 543
mortenstarck Avatar asked Oct 22 '13 08:10

mortenstarck


2 Answers

I have found a solution to the problem, which turns out to be a pretty simple one. The default Configuration in TFS Build look like this: Configuration: Release, Platform: Any CPU

But in Visual Studio 2012 it looks like this: Configuration: Release, Platform: AnyCPU

The solution is to remove the space between Any and CPU in the TFS Build Platform. Now it works perfectly.

UPDATE

The issue has been corrected in VS2013.

like image 127
mortenstarck Avatar answered Oct 19 '22 19:10

mortenstarck


For Visual Studio Team Services (was Visual Studio Online) integrated builds, @mortenstarck's answer does the trick as well. In the variables of your build, specify anycpu for BuildPlatform.


build variables


The variable is referenced in the build step:

build step

like image 14
Brett Avatar answered Oct 19 '22 21:10

Brett