zoukankan      html  css  js  c++  java
  • C#项目依据 x86 x64 配置不同的引用

    详细内容在微软官网. 以下只是一个实例,亲测可用.

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <PropertyGroup>
        <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
        <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
        <ProductVersion>8.0.30703</ProductVersion>
        <SchemaVersion>2.0</SchemaVersion>
        <ProjectGuid>{C0B54F6D-B4A5-4E4A-B60F-61AA11C9AD0B}</ProjectGuid>
        <OutputType>WinExe</OutputType>
        <AppDesignerFolder>Properties</AppDesignerFolder>
        <RootNamespace>AvlNet4_12Project1</RootNamespace>
        <AssemblyName>AvlNet4_12Project1</AssemblyName>
        <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
        <FileAlignment>512</FileAlignment>
        <TargetFrameworkProfile />
      </PropertyGroup>
      <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
        <PlatformTarget>x86</PlatformTarget>
        <DebugSymbols>true</DebugSymbols>
        <DebugType>full</DebugType>
        <Optimize>false</Optimize>
        <OutputPath>binx86Debug</OutputPath>
        <DefineConstants>DEBUG;TRACE</DefineConstants>
        <ErrorReport>prompt</ErrorReport>
        <WarningLevel>4</WarningLevel>
        <PlatformCppName>Win32</PlatformCppName>
      </PropertyGroup>
      <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
        <PlatformTarget>x86</PlatformTarget>
        <DebugType>pdbonly</DebugType>
        <Optimize>true</Optimize>
        <OutputPath>binx86Release</OutputPath>
        <DefineConstants>TRACE</DefineConstants>
        <ErrorReport>prompt</ErrorReport>
        <WarningLevel>4</WarningLevel>
        <PlatformCppName>Win32</PlatformCppName>
      </PropertyGroup>
      <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
        <DebugSymbols>true</DebugSymbols>
        <OutputPath>binx64Debug</OutputPath>
        <DefineConstants>DEBUG;TRACE</DefineConstants>
        <DebugType>full</DebugType>
        <PlatformTarget>x64</PlatformTarget>
        <ErrorReport>prompt</ErrorReport>
        <PlatformCppName>x64</PlatformCppName>
      </PropertyGroup>
      <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
        <OutputPath>binx64Release</OutputPath>
        <DefineConstants>TRACE</DefineConstants>
        <Optimize>true</Optimize>
        <DebugType>pdbonly</DebugType>
        <PlatformTarget>x64</PlatformTarget>
        <ErrorReport>prompt</ErrorReport>
        <PlatformCppName>x64</PlatformCppName>
      </PropertyGroup>
      <ItemGroup>
        <Reference Include="AVL.Net">
          <HintPath>$(AVL_PATH4_12)in$(PlatformCppName)Avl.Net.dll</HintPath>
          <Private>True</Private>
        </Reference>
        <Reference Include="AVL.Net.TS">
          <HintPath>$(AVL_PATH4_12)in$(PlatformCppName)Avl.Net.TS.dll</HintPath>
          <Private>True</Private>
        </Reference>
        <Reference Include="AVL.Net.Designers">
          <HintPath>$(AVL_PATH4_12)in$(PlatformCppName)Avl.Net.Designers.dll</HintPath>
          <Private>True</Private>
        </Reference>
        <Reference Include="AVL.Net.Amr">
          <HintPath>$(AVL_PATH4_12)in$(PlatformCppName)Avl.Net.Amr.dll</HintPath>
          <Private>True</Private>
        </Reference>
        <Reference Include="Genicam.Net">
          <HintPath>$(AVL_PATH4_12)in$(PlatformCppName)Genicam.Net.dll</HintPath>
          <Private>True</Private>
        </Reference>
        <Reference Include="System" />
        <Reference Include="System.Core" />
        <Reference Include="System.Drawing" />
        <Reference Include="System.Windows.Forms" />
      </ItemGroup>
      <ItemGroup>
        <Compile Include="Form1.cs">
          <SubType>Form</SubType>
        </Compile>
        <Compile Include="Form1.Designer.cs">
          <DependentUpon>Form1.cs</DependentUpon>
        </Compile>
        <Compile Include="Program.cs" />
        <Compile Include="PropertiesAssemblyInfo.cs" />
        <EmbeddedResource Include="Form1.resx">
          <DependentUpon>Form1.cs</DependentUpon>
        </EmbeddedResource>
        <EmbeddedResource Include="PropertiesResources.resx">
          <Generator>ResXFileCodeGenerator</Generator>
          <LastGenOutput>Resources.Designer.cs</LastGenOutput>
          <SubType>Designer</SubType>
        </EmbeddedResource>
        <Compile Include="PropertiesResources.Designer.cs">
          <AutoGen>True</AutoGen>
          <DependentUpon>Resources.resx</DependentUpon>
          <DesignTime>True</DesignTime>
        </Compile>
        <None Include="PropertiesSettings.settings">
          <Generator>SettingsSingleFileGenerator</Generator>
          <LastGenOutput>Settings.Designer.cs</LastGenOutput>
        </None>
        <Compile Include="PropertiesSettings.Designer.cs">
          <AutoGen>True</AutoGen>
          <DependentUpon>Settings.settings</DependentUpon>
          <DesignTimeSharedInput>True</DesignTimeSharedInput>
        </Compile>
      </ItemGroup>
      <Import Project="$(MSBuildToolsPath)Microsoft.CSharp.targets" />
      <PropertyGroup>
        <PostBuildEvent>
    	xcopy /D /Y "$(AVL_PATH4_12)in$(PlatformCppName)AVL.dll" "$(TargetDir)"
    	xcopy /D /Y "$(AVL_PATH4_12)in$(PlatformCppName)Genicam_Kit.dll" "$(TargetDir)"
    	</PostBuildEvent>
      </PropertyGroup>
      <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
           Other similar extension points exist, see Microsoft.Common.targets.
      <Target Name="BeforeBuild">
      </Target>
      <Target Name="AfterBuild">
      </Target>
      -->
    </Project>
    
  • 相关阅读:
    转:fork和vfork的区别(待细看)
    转:步步LINUX C--进程间通信(二)信号
    转:fork与vfork的区别
    转:Linux fork与vfork的深入分析
    转:函数指针,函数指针数组,函数指针数组的指针
    转:Linux--进程间通信(信号量,共享内存)
    转:fork()子进程创建
    侯老师的话(Application Framework)
    如何在其他类中实现继承自CFormView类的对象
    如何在MFC对话框之间自定义消息传递
  • 原文地址:https://www.cnblogs.com/onecrazystone/p/12609093.html
Copyright © 2011-2022 走看看