C++/CLI configuration specific references (debug/release)

308 views Asked by At

It's almost a duplicate of Does Visual Studio 2008 support configuration (debug/release build) specific references?.
I would like to use the answer of this post. The only problem is, I can't, because my .vcproj files look very differenty:

<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
    ProjectType="Visual C++"
    Version="9,00"
    Name="abcdef"
    ProjectGUID="{41B531B8-2DD7-4C6F-9CE2-85EA79FBAEEF}"
    RootNamespace="abcdef"
    Keyword="ManagedCProj"
    TargetFrameworkVersion="196613"
    >
    <Platforms>
        <Platform
            Name="Win32"
        />
    </Platforms>
    <ToolFiles>
    </ToolFiles>
    <Configurations>
        <Configuration
            Name="Debug|Win32"
            OutputDirectory="$(SolutionDir)$(ConfigurationName)"
    ...
        </Configuration>
        <Configuration
            Name="Release|Win32"
            OutputDirectory="$(SolutionDir)$(ConfigurationName)"
    ...
        </Configuration>
    </Configurations>
    <References>
        <AssemblyReference
            RelativePath="System.dll"
            AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
            MinFrameworkVersion="131072"
        />
        <ProjectReference
            ReferencedProjectIdentifier="{7B000E40-727B-4E26-90F2-A437EA14F0D8}"
            UseDependenciesInBuild="false"
            RelativePathToProject=".\basics\proj001.vcproj"
        />
....
    </References>
    <Files>
    ...
    </Files>
    <Globals>
    </Globals>
</VisualStudioProject>

The files are based on the XML schema defined here at MSDN. According to this scheme, the XML property "condition" is not defined.

Is there another way to set conditions (debug/release config, but also others) to references?

0

There are 0 answers