如图,FromIO本来是window窗体,换了一台电脑再打开就变成类库的图标了,再也打不开了,回到原电脑也不行,原电脑用的vs2022,设备电脑用的vs2015。尝试过的解决方法1.改成使用Unicode UTF-8提供全球语言支持。2.halcon也可以正常打开。
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{A2FA3E8E-CA06-4110-9C33-FC3425569492}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ZTX</RootNamespace>
<AssemblyName>M+R自动粘贴机-上料部分</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>F:\喜发\新建文件夹\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>logo.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<StartupObject>ZTX.Program</StartupObject>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>6</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>580B6842E3841AD4403713AB18CEAEA2E9DCD201</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>ZTX_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<ItemGroup>
<Reference Include="GxIAPINET">
<HintPath>C:\Program Files\Daheng Imaging\GalaxySDK\APIDll\Win64\.NET4.0\GxIAPINET.dll</HintPath>
</Reference>
<Reference Include="halcondotnet">
<HintPath>D:\Halcon\bin\dotnet35\halcondotnet.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Design" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="UVW, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\test\test_dll\UVW\UVW\bin\Debug\UVW.dll</HintPath>
</Reference>
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="Dmc1000.cs" />
<Compile Include="FormCamMove.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormCamMove.Designer.cs">
<DependentUpon>FormCamMove.cs</DependentUpon>
</Compile>
<Compile Include="FormCCD.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormCCD.Designer.cs">
<DependentUpon>FormCCD.cs</DependentUpon>
</Compile>
<Compile Include="FormEdit.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormEdit.designer.cs">
<DependentUpon>FormEdit.cs</DependentUpon>
</Compile>
<Compile Include="FormIO.cs" />
<Compile Include="FormIO.Designer.cs">
<DependentUpon>FormIO.cs</DependentUpon>
</Compile>
<Compile Include="FormlO.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormIRFit.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormIRFit.Designer.cs">
<DependentUpon>FormIRFit.cs</DependentUpon>
</Compile>
<Compile Include="FormLogin.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormLogin.designer.cs">
<DependentUpon>FormLogin.cs</DependentUpon>
</Compile>
<Compile Include="FormMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormMain.Designer.cs">
<DependentUpon>FormMain.cs</DependentUpon>
</Compile>
<Compile Include="FormManual.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormManual.Designer.cs">
<DependentUpon>FormManual.cs</DependentUpon>
</Compile>
<Compile Include="FormSet.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormSet.Designer.cs">
<DependentUpon>FormSet.cs</DependentUpon>
</Compile>
<Compile Include="INI.cs" />
<Compile Include="LTDMC.cs" />
<Compile Include="PCI.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FormCamMove.resx">
<DependentUpon>FormCamMove.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormCCD.resx">
<DependentUpon>FormCCD.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormEdit.resx">
<DependentUpon>FormEdit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormIO.resx">
<DependentUpon>FormIO.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormIRFit.resx">
<DependentUpon>FormIRFit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormLogin.resx">
<DependentUpon>FormLogin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormMain.resx">
<DependentUpon>FormMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormManual.resx">
<DependentUpon>FormManual.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormSet.resx">
<DependentUpon>FormSet.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="ZTX_TemporaryKey.pfx" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="logo.ico" />
<None Include="Resources\Up.ico" />
<None Include="Resources\Right.ico" />
<None Include="Resources\Left.ico" />
<None Include="Resources\Down.ico" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.5.2 %28x86 和 x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</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.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
.winmd.dll.exe lG:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\logo.ico�G:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\Properties\Settings.settingsxG:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\ZTX_TemporaryKey.pfxnG:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\App.configtG:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\Resources\Up.icowG:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\Resources\Right.icovG:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\Resources\Left.icovG:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\Resources\Down.icoLC:\Program Files\Daheng Imaging\GalaxySDK\APIDll\Win64\.NET4.0\GxIAPINET.dll�G:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\ZTX\bin\x64\Debug\halcondotnet.dlliC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Microsoft.CSharp.dllaC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\mscorlib.dlliC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\PresentationCore.dllnC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\PresentationFramework.dlldC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Core.dllvC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Data.DataSetExtensions.dlldC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Data.dlljC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Deployment.dllfC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Design.dll_C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.dllgC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Drawing.dllhC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Net.Http.dllmC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Windows.Forms.dllcC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Xml.dllhC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Xml.Linq.dll}G:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\ZTX\bin\x64\Debug\UVW.dlldC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\WindowsBase.dll UC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\ Full {CandidateAssemblyFiles}{HintPathFromItem}{TargetFrameworkDirectory}D{Registry:Software\Microsoft\.NETFramework,v4.5.2,AssemblyFoldersEx}
{RawFileName}vG:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\ZTX\bin\x64\Debug\ D{Registry:Software\Microsoft\.NETFramework,v4.5.2,AssemblyFoldersEx}�G:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\ZTX\obj\x64\Debug\DesignTimeResolveAssemblyReferences.cache UC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\]C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Facades\.NETFramework,Version=v4.5.2.NET Framework 4.5.2v4.5.2amd64
v4.0.30319 除线程之后\上料部分\ZTX\Resources\Left.ico zE:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\ZTX\Resources\Down.ico! LC:\Program Files\Daheng Imaging\GalaxySDK\APIDll\Win64\.NET4.0\GxIAPINET.dll" �E:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\ZTX\bin\x64\Debug\halcondotnet.dll# iC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Microsoft.CSharp.dll$ aC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\mscorlib.dll% iC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\PresentationCore.dll& nC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\PresentationFramework.dll' dC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Core.dll( vC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Data.DataSetExtensions.dll) dC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Data.dll* jC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Deployment.dll+ fC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Design.dll, _C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.dll- gC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Drawing.dll. hC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Net.Http.dll/ mC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Windows.Forms.dll0 cC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Xml.dll1 hC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Xml.Linq.dll2 }E:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\ZTX\bin\x64\Debug\UVW.dll3 dC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\WindowsBase.dll �System.Collections.Generic.List`1[[System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Collections.Generic.List`1[[System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] _items_size_version �System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Collections.Generic.List`1[[System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]][] 4 5 UC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\ 6 Full 4 4
8 {CandidateAssemblyFiles}9 {HintPathFromItem}: {TargetFrameworkDirectory}; D{Registry:Software\Microsoft\.NETFramework,v4.5.2,AssemblyFoldersEx}<
{RawFileName}= vE:\中转\M+R自动粘贴机\第二条线\M+R自动粘贴机20240807删除线程之后\上料部分\ZTX\bin\x64\Debug\ > UC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\? ]C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Facades\ 4 �System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Collections.Generic.List`1[[System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] ut_name[i].Height = 12;
Out_name[i].Text = "OUT" + i;
tabControl1.TabPages[1].Controls.Add(Out_name[i]);
Out[i].Location = new Point(47, 6 + i * 39);
Out[i].Width = 101;
Out[i].Height = 33;
Out[i].Text = IO.O_Define[i];
tabControl1.TabPages[1].Controls.Add(Out[i]);
//2
Out_name[14 + i] = new Label();
Out[14 + i] = new Button();
Out_name[14 + i].Location = new Point(160, 16 + i * 39);
Out_name[14 + i].Width = 35;
Out_name[14 + i].Height = 12;
Out_name[14 + i].Text = "OUT" + (14 + i);
tabControl1.TabPages[1].Controls.Add(Out_name[14 + i]);
Out[14 + i].Location = new Point(199, 6 + i * 39);
Out[14 + i].Width = 101;
Out[14 + i].Height = 33;
Out[14 + i].Text = IO.O_Define[14 + i];
tabControl1.TabPages[1].Controls.Add(Out[14 + i]);
//3