BaseOutputPath error in Visual Studio 2008?

MSDN:

BaseOutputPath : Specifies the base path for the output file. If it is set, MSBuild will use OutputPath = $ (BaseOutputPath) \ $ (Configuration) \

I tried using the BaseButild Project Base Base instead of specifying an OutputPath for each combination of configuration and platform, but Visual Studio complains when it compiles:

The OutputPath property is not set for this project. Please check to make sure that you specify a valid configuration / platform combination.

I put <BaseOutputPath>..\Binaries</BaseOutputPath> in the first unconditional <ProjectProperty> .

Am I using it incorrectly or is it a known bug in Visual Studio?

+6
visual-studio-2008 visual-studio msbuild
source share
1 answer

Most likely, this is a mistake in the documents than in VS2008 / MSBuild.

You can always talk about what you want to do with (burnout) checks, for example. your project file and the Microsoft.Common.Targets file that it imports (usually through, for example, Microsoft.CSharp.targets, these files live, for example,

C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ Microsoft.Common.targets

) and find all the MSBuild logic that ultimately fills the OutputPath.

In this case, I think the documents are straight, and you should, for example, say bluntly

 <OutputPath>$(BaseOutputPath)\$(Configuration)</OutputPath> 

in the unconditional properties of your project file (and remove the OutputPath from the conditional properties) to make this work.

+7
source share

All Articles