Explorar o código

修改命名空间,生成方式

章政 %!s(int64=8) %!d(string=hai) anos
pai
achega
21766e2847

+ 1 - 1
UAS_MesInterface/DataHelper.cs

@@ -4,7 +4,7 @@ using System.Data;
 using System.Text;
 using System.Collections.Generic;
 
-namespace UAS_MesInterface
+namespace DllService
 {
     /// <summary>
     /// 数据库操作类

+ 4 - 7
UAS_MesInterface/LogicHandler.cs → UAS_MesInterface/MESHelper.cs

@@ -1,15 +1,12 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
 using System.Data;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
-namespace UAS_MesInterface
+namespace DllService
 {
-    public class LogicHandler
+    public class MESHelper
     {
-        public LogicHandler(string Environment)
+        public MESHelper(string Environment)
         {
             dh = new DataHelper(Environment);
         }

+ 2 - 2
UAS_MesInterface/Properties/AssemblyInfo.cs

@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
 // 有关程序集的一般信息由以下
 // 控制。更改这些特性值可修改
 // 与程序集关联的信息。
-[assembly: AssemblyTitle("UAS_MesInterface")]
+[assembly: AssemblyTitle("DllService")]
 [assembly: AssemblyDescription("")]
 [assembly: AssemblyConfiguration("")]
 [assembly: AssemblyCompany("")]
@@ -17,7 +17,7 @@ using System.Runtime.InteropServices;
 //将 ComVisible 设置为 false 将使此程序集中的类型
 //对 COM 组件不可见。  如果需要从 COM 访问此程序集中的类型,
 //请将此类型的 ComVisible 特性设置为 true。
-[assembly: ComVisible(false)]
+[assembly: ComVisible(true)]
 
 // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
 [assembly: Guid("0516b4b2-6f50-4495-8785-3b813570682b")]

+ 6 - 4
UAS_MesInterface/UAS_MesInterface.csproj → UAS_MesInterface/UAS_MesDllService.csproj

@@ -7,10 +7,11 @@
     <ProjectGuid>{0516B4B2-6F50-4495-8785-3B813570682B}</ProjectGuid>
     <OutputType>Library</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>UAS_MesInterface</RootNamespace>
-    <AssemblyName>UAS_MesInterface</AssemblyName>
-    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
+    <RootNamespace>DllService</RootNamespace>
+    <AssemblyName>DllService</AssemblyName>
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
+    <TargetFrameworkProfile />
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
@@ -20,6 +21,7 @@
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
+    <RegisterForComInterop>true</RegisterForComInterop>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>pdbonly</DebugType>
@@ -45,7 +47,7 @@
   </ItemGroup>
   <ItemGroup>
     <Compile Include="DataHelper.cs" />
-    <Compile Include="LogicHandler.cs" />
+    <Compile Include="MESHelper.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />