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.

123 lines
5.0 KiB

  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <!--<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />-->
  3. <!-- 生成 -->
  4. <PropertyGroup>
  5. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  6. <DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
  7. <LangVersion>latest</LangVersion>
  8. <NoWarn>CS0108,CS0162,CS0414,CS0612,CS0618,CS0649,CS1589,CS1570,CS1572,CS1573,CS3019,CS3021</NoWarn>
  9. <OutputType>Library</OutputType>
  10. <TargetFrameworks>netcoreapp3.1;netstandard2.1;net461;net40;net20</TargetFrameworks>
  11. </PropertyGroup>
  12. <!-- 程序集信息 -->
  13. <PropertyGroup>
  14. <Authors>Elivo</Authors>
  15. <Company>Apewer Lab</Company>
  16. <Copyright>Copyright Apewer Lab. All rights reserved.</Copyright>
  17. <Description></Description>
  18. <RootNamespace>Apewer</RootNamespace>
  19. <Product>Apewer Libraries</Product>
  20. <Version>6.3.2</Version>
  21. </PropertyGroup>
  22. <!-- NuGet -->
  23. <PropertyGroup Condition="'$(Configuration)'=='Release'">
  24. <AssemblyName>Apewer</AssemblyName>
  25. <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
  26. <IsPackable>true</IsPackable>
  27. <PackageId>Apewer</PackageId>
  28. <Title>Apewer</Title>
  29. </PropertyGroup>
  30. <!-- Debug -->
  31. <PropertyGroup Condition="'$(Configuration)'=='Debug'">
  32. <DefineConstants>DEBUG;TRACE;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  33. </PropertyGroup>
  34. <!-- .NET Standard 2.1 -->
  35. <PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.1'">
  36. <AssemblyTitle>$(AssemblyName) - .NET Standard 2.1</AssemblyTitle>
  37. <DefineConstants>NETSTD;HAVE_ASYNC;HAVE_BIG_INTEGER;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  38. </PropertyGroup>
  39. <!-- .NET Framework 2.0 -->
  40. <PropertyGroup Condition="'$(TargetFramework)'=='net20'">
  41. <AssemblyTitle>$(AssemblyName) - .NET Framework 2.0</AssemblyTitle>
  42. <DefineConstants>NETFX;NET20;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  43. </PropertyGroup>
  44. <ItemGroup Condition="'$(TargetFramework)'=='net20'">
  45. <Reference Include="CustomMarshalers" />
  46. <Reference Include="System.Configuration" />
  47. <Reference Include="System.Design" />
  48. <Reference Include="System.Management" />
  49. <Reference Include="System.Security" />
  50. <Reference Include="System.Transactions" />
  51. <Reference Include="System.Web" />
  52. <Reference Include="System.Windows.Forms" />
  53. </ItemGroup>
  54. <!-- .NET Framework 4.0 -->
  55. <PropertyGroup Condition="'$(TargetFramework)'=='net40'">
  56. <AssemblyTitle>$(AssemblyName) - .NET Framework 4.0</AssemblyTitle>
  57. <DefineConstants>NETFX;NET40;HAVE_BIG_INTEGER;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  58. </PropertyGroup>
  59. <ItemGroup Condition="'$(TargetFramework)'=='net40'">
  60. <Reference Include="CustomMarshalers" />
  61. <Reference Include="Microsoft.CSharp" />
  62. <Reference Include="PresentationCore" />
  63. <Reference Include="System.Core" />
  64. <Reference Include="System.Configuration" />
  65. <Reference Include="System.Design" />
  66. <Reference Include="System.Drawing" />
  67. <Reference Include="System.Management" />
  68. <Reference Include="System.Runtime.Caching" />
  69. <Reference Include="System.Security" />
  70. <Reference Include="System.Speech" />
  71. <Reference Include="System.Transactions" />
  72. <Reference Include="System.Web" />
  73. <Reference Include="System.Windows.Forms" />
  74. <Reference Include="WindowsBase" />
  75. </ItemGroup>
  76. <!-- .NET Framework 4.6.1 -->
  77. <PropertyGroup Condition="'$(TargetFramework)'=='net461'">
  78. <AssemblyTitle>$(AssemblyName) - .NET Framework 4.6.1</AssemblyTitle>
  79. <DefineConstants>NETFX;NET461;NET45;HAVE_ASYNC;HAVE_BIG_INTEGER;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  80. </PropertyGroup>
  81. <ItemGroup Condition="'$(TargetFramework)'=='net461'">
  82. <Reference Include="CustomMarshalers" />
  83. <Reference Include="Microsoft.CSharp" />
  84. <Reference Include="PresentationCore" />
  85. <Reference Include="System.Core" />
  86. <Reference Include="System.Configuration" />
  87. <Reference Include="System.Design" />
  88. <Reference Include="System.Drawing" />
  89. <Reference Include="System.Management" />
  90. <Reference Include="System.Runtime.Caching" />
  91. <Reference Include="System.Security" />
  92. <Reference Include="System.Speech" />
  93. <Reference Include="System.Transactions" />
  94. <Reference Include="System.Web" />
  95. <Reference Include="System.Windows.Forms" />
  96. <Reference Include="WindowsBase" />
  97. </ItemGroup>
  98. <!-- .NET Core 3.1 -->
  99. <PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
  100. <AssemblyTitle>$(AssemblyName) - .NET Core 3.1</AssemblyTitle>
  101. <DefineConstants>NETCORE;HAVE_ASYNC;HAVE_BIG_INTEGER;$(DefineConstants);$(AdditionalConstants)</DefineConstants>
  102. <!-- 引用 Microsoft.WindowsDesktop.App 时,不需要 UseWPF 和 UseWindowsForms。-->
  103. <!--<UseWPF>true</UseWPF>-->
  104. <!--<UseWindowsForms>true</UseWindowsForms>-->
  105. </PropertyGroup>
  106. <ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
  107. <FrameworkReference Include="Microsoft.AspNetCore.App" />
  108. <FrameworkReference Include="Microsoft.WindowsDesktop.App" />
  109. </ItemGroup>
  110. <!--<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />-->
  111. </Project>