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.

63 lines
2.4 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
2 months ago
4 years ago
4 years ago
4 years ago
4 years ago
4 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. </PropertyGroup>
  19. <ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
  20. <!-- <FrameworkReference Include="Microsoft.AspNetCore.App" /> -->
  21. <FrameworkReference Include="Microsoft.WindowsDesktop.App" />
  22. <!--<PackageReference Include="System.ServiceProcess.ServiceController" Version="4.4.0" />-->
  23. <PackageReference Include="System.ServiceProcess.ServiceController" Version="6.0.0" />
  24. </ItemGroup>
  25. <!-- .NET Framework 4.6.1 -->
  26. <ItemGroup Condition="'$(TargetFramework)'=='net461'">
  27. <Reference Include="CustomMarshalers" />
  28. <Reference Include="PresentationCore" />
  29. <Reference Include="System.Drawing" />
  30. <Reference Include="System.Management" />
  31. <Reference Include="System.ServiceProcess " />
  32. <Reference Include="System.Speech" />
  33. <Reference Include="System.Windows.Forms" />
  34. <Reference Include="WindowsBase" />
  35. </ItemGroup>
  36. <!-- .NET Framework 4.0 -->
  37. <ItemGroup Condition="'$(TargetFramework)'=='net40'">
  38. <Reference Include="CustomMarshalers" />
  39. <Reference Include="PresentationCore" />
  40. <Reference Include="System.Drawing" />
  41. <Reference Include="System.Management" />
  42. <Reference Include="System.ServiceProcess " />
  43. <Reference Include="System.Speech" />
  44. <Reference Include="System.Windows.Forms" />
  45. <Reference Include="WindowsBase" />
  46. </ItemGroup>
  47. <!-- .NET Framework 2.0 -->
  48. <ItemGroup Condition="'$(TargetFramework)'=='net20'">
  49. <Reference Include="CustomMarshalers" />
  50. <Reference Include="System.Configuration" />
  51. <Reference Include="System.Management" />
  52. <Reference Include="System.ServiceProcess " />
  53. <Reference Include="System.Windows.Forms" />
  54. </ItemGroup>
  55. </Project>