You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.3 KiB

4 years ago
5 years ago
5 years ago
5 years ago
6 months ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <Import Project="..\Apewer\Apewer.props" />
  3. <PropertyGroup>
  4. <NoWarn>CS0108;CS0612</NoWarn>
  5. <TargetFrameworks>net461;net40;net20;netcoreapp3.1</TargetFrameworks>
  6. </PropertyGroup>
  7. <!-- 打包 -->
  8. <PropertyGroup>
  9. <Description>实现 Windows 程序功能。</Description>
  10. </PropertyGroup>
  11. <ItemGroup>
  12. <ProjectReference Include="..\Apewer\Apewer.csproj" />
  13. </ItemGroup>
  14. <!-- .NET Core 3.1 -->
  15. <PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
  16. <!-- <UseWPF>true</UseWPF> -->
  17. <!-- <UseWindowsForms>true</UseWindowsForms> -->
  18. <DefineConstants>DRAWING;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  19. </PropertyGroup>
  20. <ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
  21. <!-- <FrameworkReference Include="Microsoft.AspNetCore.App" /> -->
  22. <FrameworkReference Include="Microsoft.WindowsDesktop.App" />
  23. <!--<PackageReference Include="System.ServiceProcess.ServiceController" Version="4.4.0" />-->
  24. <PackageReference Include="System.ServiceProcess.ServiceController" Version="6.0.0" />
  25. <Compile Include="..\Apewer\DrawingUtility.cs" />
  26. </ItemGroup>
  27. <!-- .NET Framework 4.6.1 -->
  28. <ItemGroup Condition="'$(TargetFramework)'=='net461'">
  29. <Reference Include="CustomMarshalers" />
  30. <Reference Include="PresentationCore" />
  31. <Reference Include="System.Drawing" />
  32. <Reference Include="System.Management" />
  33. <Reference Include="System.ServiceProcess " />
  34. <Reference Include="System.Speech" />
  35. <Reference Include="System.Windows.Forms" />
  36. <Reference Include="WindowsBase" />
  37. </ItemGroup>
  38. <!-- .NET Framework 4.0 -->
  39. <ItemGroup Condition="'$(TargetFramework)'=='net40'">
  40. <Reference Include="CustomMarshalers" />
  41. <Reference Include="PresentationCore" />
  42. <Reference Include="System.Drawing" />
  43. <Reference Include="System.Management" />
  44. <Reference Include="System.ServiceProcess " />
  45. <Reference Include="System.Speech" />
  46. <Reference Include="System.Windows.Forms" />
  47. <Reference Include="WindowsBase" />
  48. </ItemGroup>
  49. <!-- .NET Framework 2.0 -->
  50. <ItemGroup Condition="'$(TargetFramework)'=='net20'">
  51. <Reference Include="CustomMarshalers" />
  52. <Reference Include="System.Configuration" />
  53. <Reference Include="System.Management" />
  54. <Reference Include="System.ServiceProcess " />
  55. <Reference Include="System.Windows.Forms" />
  56. </ItemGroup>
  57. </Project>