C++ vcproj OutputDirectory macros

73 views Asked by At

In vcproj file i have

<Configuration
            Name="Release|Win32"
            OutputDirectory=".\Release"
...
>

What is .\Release it is some kind of macros? In what settings is it indicated? How setup him?

2

There are 2 answers

0
Marius Bancila On BEST ANSWER

That looks like a very old version of VC++, but you did not specify which. The (not so) new MSBuild project files have the extension vcxproj and have a different format:

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    <LinkIncremental>true</LinkIncremental>
    <OutDir>.\Release</OutDir>
  </PropertyGroup>

Nevertheless, you make these changes from the Project properties. By default, the output directory is $(SolutionDir)$(Configuration)\ in which case the <OutDir> setting is missing. You can, however, explicitly set a different output directory.

I know this refers to the MSBuild project format but these are handled similarly in older versions that were using VSBuild.

0
Mayur On

.\Release is output directory name. Whenever you build your project compiler will create folder Release in the current directory and output will copy to that directory.