BeiJingComService.csproj 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  4. <PropertyGroup>
  5. <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  6. <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  7. <ProjectGuid>{A7E4C1D9-3B62-4F58-9D10-6C2E8F5A1B73}</ProjectGuid>
  8. <OutputType>WinExe</OutputType>
  9. <RootNamespace>BeiJingComService</RootNamespace>
  10. <AssemblyName>BeiJingComService</AssemblyName>
  11. <ApplicationIcon>app.ico</ApplicationIcon>
  12. <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
  13. <FileAlignment>512</FileAlignment>
  14. <Deterministic>true</Deterministic>
  15. <TargetFrameworkProfile />
  16. <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  17. </PropertyGroup>
  18. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  19. <DebugSymbols>true</DebugSymbols>
  20. <DebugType>full</DebugType>
  21. <Optimize>false</Optimize>
  22. <OutputPath>bin\Debug\</OutputPath>
  23. <DefineConstants>DEBUG;TRACE</DefineConstants>
  24. <ErrorReport>prompt</ErrorReport>
  25. <WarningLevel>4</WarningLevel>
  26. <!-- 医保厂商 COM/OCX 组件绝大多数为 32 位,保持 32 位优先;若组件确为 64 位,改为 false -->
  27. <Prefer32Bit>true</Prefer32Bit>
  28. </PropertyGroup>
  29. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  30. <DebugType>pdbonly</DebugType>
  31. <Optimize>true</Optimize>
  32. <OutputPath>bin\Release\</OutputPath>
  33. <DefineConstants>TRACE</DefineConstants>
  34. <ErrorReport>prompt</ErrorReport>
  35. <WarningLevel>4</WarningLevel>
  36. <Prefer32Bit>true</Prefer32Bit>
  37. </PropertyGroup>
  38. <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
  39. <DebugSymbols>true</DebugSymbols>
  40. <OutputPath>bin\x86\Debug\</OutputPath>
  41. <DefineConstants>DEBUG;TRACE</DefineConstants>
  42. <PlatformTarget>x86</PlatformTarget>
  43. <ErrorReport>prompt</ErrorReport>
  44. <WarningLevel>4</WarningLevel>
  45. <Prefer32Bit>false</Prefer32Bit>
  46. </PropertyGroup>
  47. <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
  48. <OutputPath>bin\x86\Release\</OutputPath>
  49. <DefineConstants>TRACE</DefineConstants>
  50. <Optimize>true</Optimize>
  51. <PlatformTarget>x86</PlatformTarget>
  52. <ErrorReport>prompt</ErrorReport>
  53. <WarningLevel>4</WarningLevel>
  54. <Prefer32Bit>false</Prefer32Bit>
  55. </PropertyGroup>
  56. <ItemGroup>
  57. <Reference Include="System" />
  58. <Reference Include="System.Configuration" />
  59. <Reference Include="System.Configuration.Install" />
  60. <Reference Include="System.Core" />
  61. <Reference Include="System.ServiceProcess" />
  62. <Reference Include="System.Windows.Forms" />
  63. <Reference Include="System.Drawing" />
  64. </ItemGroup>
  65. <ItemGroup>
  66. <Compile Include="Client\ComClient.cs" />
  67. <Compile Include="Core\CardReaderFlow.cs" />
  68. <Compile Include="Core\ComGateway.cs" />
  69. <Compile Include="Core\ComResult.cs" />
  70. <Compile Include="Core\DialogTopmostWatcher.cs" />
  71. <Compile Include="Core\GatewayHost.cs" />
  72. <Compile Include="Core\IComGateway.cs" />
  73. <Compile Include="Core\ScanBuffer.cs" />
  74. <Compile Include="Hosts\IApplicationHost.cs" />
  75. <Compile Include="Hosts\ProjectInstaller.cs">
  76. <SubType>Component</SubType>
  77. </Compile>
  78. <Compile Include="Hosts\ServiceApplicationHost.cs">
  79. <SubType>Component</SubType>
  80. </Compile>
  81. <Compile Include="Hosts\TrayApplicationHost.cs" />
  82. <Compile Include="Infrastructure\AppConfig.cs" />
  83. <Compile Include="Infrastructure\Logger.cs" />
  84. <Compile Include="Infrastructure\SensitiveDataMasker.cs" />
  85. <Compile Include="Infrastructure\SingleInstanceGuard.cs" />
  86. <Compile Include="Infrastructure\TradeLogger.cs" />
  87. <Compile Include="Program.cs" />
  88. <Compile Include="Properties\AssemblyInfo.cs" />
  89. <Compile Include="Protocols\HttpProtocol.cs" />
  90. <Compile Include="Protocols\ITransportProtocol.cs" />
  91. <Compile Include="WinForms\ScanWatcher.cs" />
  92. <Compile Include="WinForms\DiagnosticForm.cs">
  93. <SubType>Form</SubType>
  94. </Compile>
  95. <Compile Include="WinForms\TrayIconForm.cs">
  96. <SubType>Form</SubType>
  97. </Compile>
  98. </ItemGroup>
  99. <ItemGroup>
  100. <Content Include="Readme.md" />
  101. <None Include="App.config" />
  102. <EmbeddedResource Include="app.ico" />
  103. <!-- HTML 调试页(托盘「HTML 调试」→ http://127.0.0.1:5001/debug)
  104. 同时内嵌与随包复制:
  105. · 内嵌 = 部署漏拷 Html 目录也不会 404(兜底)
  106. · Content + CopyToOutputDirectory = 现场可直接改 Html\com-debug.html,刷新浏览器即生效 -->
  107. <EmbeddedResource Include="Html\com-debug.html" />
  108. <Content Include="Html\com-debug.html">
  109. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  110. </Content>
  111. </ItemGroup>
  112. <ItemGroup>
  113. <BootstrapperPackage Include=".NETFramework,Version=v4.8">
  114. <Visible>False</Visible>
  115. <ProductName>Microsoft .NET Framework 4.8 %28x86 和 x64%29</ProductName>
  116. <Install>true</Install>
  117. </BootstrapperPackage>
  118. </ItemGroup>
  119. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  120. </Project>