1

Visual Studio 2008 は構成 (デバッグ/リリース ビルド) 固有の参照をサポートしていますか? .
この投稿の回答を使用したいと思います。唯一の問題は、.vcprojファイルの見た目が非常に異なるため、できないことです。

<?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>

ファイルは、MSDN で定義されている XML スキーマに基づいています。このスキームによると、XML プロパティ「条件」は定義されていません。

参照に条件 (デバッグ/リリース構成だけでなく、その他) を設定する別の方法はありますか?

4

0 に答える 0