From 95b50178d3fde31dd9e1d594264e4cf036e4f272 Mon Sep 17 00:00:00 2001 From: patrick.xu <patrick.xu@broconcentric.com> Date: 星期一, 15 八月 2022 18:59:05 +0800 Subject: [PATCH] 优先x86编译 --- LLMF/LLMF.csproj | 27 +++++++++++++++++---------- 1 files changed, 17 insertions(+), 10 deletions(-) diff --git a/LLMF/LLMF.csproj b/LLMF/LLMF.csproj index c3a63f3..03084de 100644 --- a/LLMF/LLMF.csproj +++ b/LLMF/LLMF.csproj @@ -1,5 +1,5 @@ 锘�<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> @@ -10,7 +10,7 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>LLMF</RootNamespace> <AssemblyName>LLMF</AssemblyName> - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> <ApplicationIcon>ico.ico</ApplicationIcon> <FileUpgradeFlags> @@ -28,8 +28,8 @@ <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> - <PlatformTarget>x86</PlatformTarget> - <Prefer32Bit>false</Prefer32Bit> + <PlatformTarget>AnyCPU</PlatformTarget> + <Prefer32Bit>true</Prefer32Bit> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> @@ -49,10 +49,6 @@ </Reference> <Reference Include="hdevenginedotnet"> <HintPath>..\Lib\halcon\hdevenginedotnet.dll</HintPath> - </Reference> - <Reference Include="Interop.OPCAutomation"> - <HintPath>..\Lib\Interop.OPCAutomation.dll</HintPath> - <EmbedInteropTypes>True</EmbedInteropTypes> </Reference> <Reference Include="PresentationCore"> <RequiredTargetFramework>3.0</RequiredTargetFramework> @@ -161,11 +157,11 @@ </ItemGroup> <ItemGroup> <ProjectReference Include="..\EventTool\EventTool.csproj"> - <Project>{2EBB374F-7C87-4A83-8AF4-503CDF0D1B0E}</Project> + <Project>{2ebb374f-7c87-4a83-8af4-503cdf0d1b0e}</Project> <Name>EventTool</Name> </ProjectReference> <ProjectReference Include="..\FileToolkit\FileToolkit.csproj"> - <Project>{EC3A7C8F-C3FB-461C-9AF1-2456E1CBEC46}</Project> + <Project>{ec3a7c8f-c3fb-461c-9af1-2456e1cbec46}</Project> <Name>FileToolkit</Name> </ProjectReference> <ProjectReference Include="..\HalconTools\HalconTools.csproj"> @@ -177,6 +173,17 @@ <Name>PointGreyAndHalcon</Name> </ProjectReference> </ItemGroup> + <ItemGroup> + <COMReference Include="OPCAutomation"> + <Guid>{28E68F91-8D75-11D1-8DC3-3C302A000000}</Guid> + <VersionMajor>1</VersionMajor> + <VersionMinor>0</VersionMinor> + <Lcid>0</Lcid> + <WrapperTool>tlbimp</WrapperTool> + <Isolated>False</Isolated> + <EmbedInteropTypes>True</EmbedInteropTypes> + </COMReference> + </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <!-- 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. -- Gitblit v1.8.0