<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="Current">
<PropertyGroup>
<TargetFrameworks>net40;net45;net46;netstandard2.0</TargetFrameworks>
<AssemblyName>NewLife.Core</AssemblyName>
<RootNamespace>NewLife</RootNamespace>
<AssemblyTitle>X组件核心库</AssemblyTitle>
<Description>算法、日志、网络、RPC、序列化、缓存、线程池</Description>
<Company>新生命开发团队</Company>
<Copyright>©2002-2020 NewLife</Copyright>
<Version>8.7.2020.0601</Version>
<FileVersion>8.7.2020.0601</FileVersion>
<AssemblyVersion>8.7.*</AssemblyVersion>
<Deterministic>false</Deterministic>
<OutputPath>..\..\Bin</OutputPath>
<DocumentationFile>$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>TRACE</DefineConstants>
<LangVersion>latest</LangVersion>
<!--<Nullable>enable</Nullable>-->
</PropertyGroup>
<PropertyGroup>
<PackageId>$(AssemblyName)</PackageId>
<Authors>$(Company)</Authors>
<ProjectUrl>https://github.com/NewLifeX</ProjectUrl>
<PackageIcon>leaf.png</PackageIcon>
<RepositoryUrl>https://github.com/NewLifeX/X</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>新生命团队;X组件;NewLife;$(AssemblyName)</PackageTags>
<PackageReleaseNotes>机器信息增加磁盘序列号;增加主动式消息服务;优化JWT</PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSource>true</IncludeSource>
<!--<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>-->
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net40'">
<DefineConstants>$(DefineConstants);__WIN__;NET4</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net45'">
<DefineConstants>$(DefineConstants);__WIN__;NET45</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net46'">
<DefineConstants>$(DefineConstants);__WIN__;NET46</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<DefineConstants>$(DefineConstants);__CORE__;STD20</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.1'">
<DefineConstants>$(DefineConstants);__CORE__;STD21</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<!--<GeneratePackageOnBuild>true</GeneratePackageOnBuild>-->
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net45' Or '$(TargetFramework)'=='net46'">
<Reference Include="System.IO.Compression" />
<Reference Include="System.Net.Http" />
<Reference Include="System.ServiceProcess" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Windows.Forms" />
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="System.Management" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net40'">
<Reference Include="System.ServiceProcess" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Windows.Forms" />
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="System.Management" />
<PackageReference Include="System.Net.Http" Version="2.0.20710" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Agent\**" />
<Compile Remove="Web\OAuth\**" />
<EmbeddedResource Remove="Agent\**" />
<EmbeddedResource Remove="Web\OAuth\**" />
<None Remove="Agent\**" />
<None Remove="Web\OAuth\**" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Extension\EndPointExtensions.cs" />
<Compile Remove="Http\HttpClient.cs" />
<Compile Remove="Http\HttpSession.cs" />
<Compile Remove="Net\SerialPortConfig.cs" />
<Compile Remove="Net\SerialTransport.cs" />
<Compile Remove="Net\WebSocketSession.cs" />
<Compile Remove="Properties\AssemblyInfo.cs" />
<Compile Remove="Reflection\EmitHelper.cs" />
<Compile Remove="Reflection\EmitReflect.cs" />
<Compile Remove="Web\OAuthClient.cs" />
<Compile Remove="Web\OAuthConfig.cs" />
<Compile Remove="Web\OAuthServer.cs" />
<Compile Remove="Web\Pager.cs" />
<Compile Remove="Web\WebHelper.cs" />
<Compile Remove="Windows\MySpeech.cs" />
<Compile Remove="发布NuGet.cs" />
</ItemGroup>
<ItemGroup>
<None Remove="UpdateInfo.txt" />
<None Remove="X组件.txt" />
</ItemGroup>
<ItemGroup>
<Content Include="..\Doc\leaf.png" Link="leaf.png" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="UpdateInfo.txt" />
<EmbeddedResource Include="Windows\MySpeech.cs" />
<EmbeddedResource Include="X组件.txt" />
</ItemGroup>
</Project>
|