项目文件之谜 - 重复配置部分?

时间:2015-04-16 15:42:18

标签: .net visual-studio-2013 projects-and-solutions

我们正在将大量项目从x86更改为AnyCPU。我不知道这很重要,但这些是.vbproj文件。所以我打开我们的一个项目并将其从x86更改为AnyCPU for All Configurations(我们只有两个:Release& Debug)然后我去查看项目文件的差异,我有点困惑。有两个具有相同名称的ProjectGroup:

  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <DefineDebug>true</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <OutputPath>bin\x86\Debug\</OutputPath>
    <DocumentationFile>
    </DocumentationFile>
    <NoWarn>42353,42354,42355</NoWarn>
    <WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
    <BaseAddress>1349517312</BaseAddress>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <RegisterForComInterop>false</RegisterForComInterop>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    <PlatformTarget>x86</PlatformTarget>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    <DebugType>pdbonly</DebugType>
    <DefineDebug>false</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <Optimize>true</Optimize>
    <OutputPath>bin\x86\Release\</OutputPath>
    <DocumentationFile>
    </DocumentationFile>
    <NoWarn>42353,42354,42355</NoWarn>
    <WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
    <BaseAddress>1349517312</BaseAddress>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <RegisterForComInterop>false</RegisterForComInterop>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    <PlatformTarget>x86</PlatformTarget>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    <DebugSymbols>true</DebugSymbols>
    <DefineDebug>true</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <OutputPath>bin\x86\Debug\</OutputPath>
    <BaseAddress>1349517312</BaseAddress>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <NoWarn>42353,42354,42355</NoWarn>
    <DebugType>full</DebugType>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    <DefineTrace>true</DefineTrace>
    <OutputPath>bin\x86\Release\</OutputPath>
    <BaseAddress>1349517312</BaseAddress>
    <Optimize>true</Optimize>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <NoWarn>42353,42354,42355</NoWarn>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>

如您所见,一个ProjectGroup设置为编译为AnyCPU,另一个设置为编译为x86。通过IDE,一切都设置为AnyCPU.Like我说只有两种配置(发布和调试)和一个平台(x86)。是的我知道平台与<PlatformTarget>不匹配,但这不应该有所不同(我们构建中的不同项目无论如何都会有不同的平台目标)。

这可能会给我带来两个问题:

  1. 我想进行搜索/替换,将所有项目文件从<PlatformTarget>x86</PlatformTarget>更改为<PlatformTarget>AnyCPU</PlatformTaget>,这样我就不必打开visual studio中的每个项目了。
  2. 还想搜索以确保我没有错过任何内容

0 个答案:

没有答案
相关问题