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.

109 lines
4.4 KiB

4 years ago
4 years ago
4 years ago
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <!--<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />-->
  3. <Import Project="_Common.props" />
  4. <PropertyGroup>
  5. <OutputType>Library</OutputType>
  6. <TargetFrameworks>netcoreapp3.1;netstandard2.1;netstandard2.0;net461;net40;net20</TargetFrameworks>
  7. </PropertyGroup>
  8. <PropertyGroup>
  9. <AssemblyName>Apewer</AssemblyName>
  10. <Description></Description>
  11. <PackageId>Apewer</PackageId>
  12. <RootNamespace>Apewer</RootNamespace>
  13. <Title>Apewer</Title>
  14. </PropertyGroup>
  15. <!-- .NET Standard 2.1 -->
  16. <PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.1'">
  17. <AssemblyTitle>$(AssemblyName) - .NET Standard 2.1</AssemblyTitle>
  18. <DefineConstants>NETSTD;HAVE_ASYNC;HAVE_BIG_INTEGER;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  19. </PropertyGroup>
  20. <!-- .NET Standard 2.0 -->
  21. <PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
  22. <AssemblyTitle>$(AssemblyName) - .NET Standard 2.0</AssemblyTitle>
  23. <DefineConstants>NETSTD;HAVE_ASYNC;HAVE_BIG_INTEGER;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  24. </PropertyGroup>
  25. <!-- .NET Framework 2.0 -->
  26. <PropertyGroup Condition="'$(TargetFramework)'=='net20'">
  27. <AssemblyTitle>$(AssemblyName) - .NET Framework 2.0</AssemblyTitle>
  28. <DefineConstants>NETFX;NET20;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  29. </PropertyGroup>
  30. <ItemGroup Condition="'$(TargetFramework)'=='net20'">
  31. <Reference Include="CustomMarshalers" />
  32. <Reference Include="System.Configuration" />
  33. <Reference Include="System.Design" />
  34. <Reference Include="System.Management" />
  35. <Reference Include="System.Security" />
  36. <Reference Include="System.Transactions" />
  37. <Reference Include="System.Web" />
  38. <Reference Include="System.Windows.Forms" />
  39. </ItemGroup>
  40. <!-- .NET Framework 4.0 -->
  41. <PropertyGroup Condition="'$(TargetFramework)'=='net40'">
  42. <AssemblyTitle>$(AssemblyName) - .NET Framework 4.0</AssemblyTitle>
  43. <DefineConstants>NETFX;NET40;HAVE_BIG_INTEGER;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  44. </PropertyGroup>
  45. <ItemGroup Condition="'$(TargetFramework)'=='net40'">
  46. <Reference Include="CustomMarshalers" />
  47. <Reference Include="Microsoft.CSharp" />
  48. <Reference Include="PresentationCore" />
  49. <Reference Include="System.Core" />
  50. <Reference Include="System.Configuration" />
  51. <Reference Include="System.Design" />
  52. <Reference Include="System.Drawing" />
  53. <Reference Include="System.Management" />
  54. <Reference Include="System.Runtime.Caching" />
  55. <Reference Include="System.Security" />
  56. <Reference Include="System.Speech" />
  57. <Reference Include="System.Transactions" />
  58. <Reference Include="System.Web" />
  59. <Reference Include="System.Windows.Forms" />
  60. <Reference Include="WindowsBase" />
  61. </ItemGroup>
  62. <!-- .NET Framework 4.6.1 -->
  63. <PropertyGroup Condition="'$(TargetFramework)'=='net461'">
  64. <AssemblyTitle>$(AssemblyName) - .NET Framework 4.6.1</AssemblyTitle>
  65. <DefineConstants>NETFX;NET461;NET45;HAVE_ASYNC;HAVE_BIG_INTEGER;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  66. </PropertyGroup>
  67. <ItemGroup Condition="'$(TargetFramework)'=='net461'">
  68. <Reference Include="CustomMarshalers" />
  69. <Reference Include="Microsoft.CSharp" />
  70. <Reference Include="PresentationCore" />
  71. <Reference Include="System.Core" />
  72. <Reference Include="System.Configuration" />
  73. <Reference Include="System.Design" />
  74. <Reference Include="System.Drawing" />
  75. <Reference Include="System.Management" />
  76. <Reference Include="System.Runtime.Caching" />
  77. <Reference Include="System.Security" />
  78. <Reference Include="System.Speech" />
  79. <Reference Include="System.Transactions" />
  80. <Reference Include="System.Web" />
  81. <Reference Include="System.Windows.Forms" />
  82. <Reference Include="WindowsBase" />
  83. </ItemGroup>
  84. <!-- .NET Core 3.1 -->
  85. <PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
  86. <AssemblyTitle>$(AssemblyName) - .NET Core 3.1</AssemblyTitle>
  87. <DefineConstants>NETCORE;HAVE_ASYNC;HAVE_BIG_INTEGER;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  88. <!-- 引用 Microsoft.WindowsDesktop.App 时,不需要 UseWPF 和 UseWindowsForms。-->
  89. <!--<UseWPF>true</UseWPF>-->
  90. <!--<UseWindowsForms>true</UseWindowsForms>-->
  91. </PropertyGroup>
  92. <ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
  93. <FrameworkReference Include="Microsoft.AspNetCore.App" />
  94. <FrameworkReference Include="Microsoft.WindowsDesktop.App" />
  95. </ItemGroup>
  96. <!--<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />-->
  97. </Project>