Skip to content

Commit

Permalink
支持NET4.0,发布0707
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jul 7, 2019
1 parent 3ae4e97 commit b3a35f7
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 22 deletions.
26 changes: 17 additions & 9 deletions NewLife.Thrift/NewLife.Thrift.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net45;netstandard2.0;net40</TargetFrameworks>
<AssemblyName>NewLife.Thrift</AssemblyName>
<RootNamespace>NewLife.Thrift</RootNamespace>
<AssemblyTitle>Thrift序列化</AssemblyTitle>
<Description>Thrift序列化支持库</Description>
<Company>新生命开发团队</Company>
<Copyright>©2002-2019 新生命开发团队</Copyright>
<Version>0.13.2019.0323</Version>
<FileVersion>0.13.2019.0323</FileVersion>
<Version>0.13.2019.0707</Version>
<FileVersion>0.13.2019.0707</FileVersion>
<AssemblyVersion>0.13.*</AssemblyVersion>
<Deterministic>false</Deterministic>
<OutputPath>..\Bin</OutputPath>
Expand All @@ -24,17 +24,13 @@
<RepositoryUrl>https://github.com/NewLifeX/NewLife.Thrift</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>新生命团队;X组件;NewLife;$(AssemblyName)</PackageTags>
<PackageReleaseNotes>方便通过Thrift实现目标协议</PackageReleaseNotes>
<PackageReleaseNotes>支持NET40</PackageReleaseNotes>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSource>true</IncludeSource>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-*" PrivateAssets="All"/>
</ItemGroup>

<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<DefineConstants>$(DefineConstants);NETSTANDARD2_0;__CORE__</DefineConstants>
</PropertyGroup>
Expand All @@ -43,12 +39,24 @@
<DefineConstants>$(DefineConstants);__WIN__</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)'=='net40'">
<DefineConstants>$(DefineConstants);__WIN__;NET4</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net45'">
<Reference Include="System.Web" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net40'">
<Reference Include="System.Web" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="NewLife.Core" Version="8.1.2019.320" />
<PackageReference Include="NewLife.Core" Version="8.2.2019.706" />
</ItemGroup>

</Project>
13 changes: 13 additions & 0 deletions NewLife.Thrift/Properties/PublishProfiles/FolderProfile.pubxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>netstandard2.0</TargetFramework>
<PublishDir>..\Bin\</PublishDir>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion NewLife.Thrift/Transport/THttpTaskAsyncHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace NewLife.Thrift.Transport
{
#if !__CORE__
#if !__CORE__ && !NET40
/// <summary>
/// An async task based HTTP handler for processing thrift services.
/// </summary>
Expand Down
26 changes: 17 additions & 9 deletions Readme.MD
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
方便通过Thrift实现目标协议

## 新生命开源项目矩阵
各项目默认支持net4.5/net4.0/netstandard2.0

| 项目 | 年份 | 状态 | .NET Core | 说明 |
| :--------------------------------------------------------------: | :---: | :----: | :-------: | -------------------------------------------------- |
| [NewLife.Core](https://github.com/NewLifeX/X) | 2002 | 维护中 || 日志、网络、RPC、序列化、缓存、多线程 |
| 基础组件 | | | | 支撑其它中间件以及产品项目 |
| [NewLife.Core](https://github.com/NewLifeX/X) | 2002 | 维护中 || 算法、日志、网络、RPC、序列化、缓存、多线程 |
| [XCode](https://github.com/NewLifeX/X) | 2005 | 维护中 || 数据中间件,MySQL、SQLite、SqlServer、Oracle |
| [NewLife.Net](https://github.com/NewLifeX/NewLife.Net) | 2005 | 维护中 || 网络库,千万级吞吐率,学习gRPC、Thrift |
| [NewLife.Cube](https://github.com/NewLifeX/NewLife.Cube) | 2010 | 维护中 || Web魔方,权限基础框架,集成OAuth |
| 中间件 | | | | 对接各知名中间件平台 |
| [NewLife.Redis](https://github.com/NewLifeX/NewLife.Redis) | 2017 | 维护中 || Redis客户端,微秒级延迟,百亿级项目验证 |
| [NewLife.RocketMQ](https://github.com/NewLifeX/NewLife.RocketMQ) | 2018 | 维护中 || 支持Apache RocketMQ和阿里云消息队列 |
| [NewLife.Thrift](https://github.com/NewLifeX/NewLife.Thrift) | 2019 | 维护中 || Thrift协议实现 |
| [NewLife.Hive](https://github.com/NewLifeX/NewLife.Hive) | 2019 | 维护中 || 纯托管读写Hive,Hadoop数据仓库,基于Thrift协议 |
| [NewLife.MQ](https://github.com/NewLifeX/NewLife.MQ) | 2016 | 维护中 || 轻量级消息队列 |
| [Stardust](https://github.com/NewLifeX/Stardust) | 2018 | 开发中 || 星尘,微服务平台,学习Dubbo |
| [XAgent](https://github.com/NewLifeX/XAgent) | 2008 | 重构中 || 集群节点分布式计算平台,学习Hadoop |
| [NoDb](https://github.com/NewLifeX/NoDb) | 2017 | 开发中 || NoSQL数据库,百万级读写性能,学习Redis+MongoDB |
| [NoDb](https://github.com/NewLifeX/NoDb) | 2017 | 开发中 || NoSQL数据库,百万级kv读写性能,持久化 |
| [NewLife.Cache](https://github.com/NewLifeX/NewLife.Cache) | 2018 | 维护中 || 自定义缓存服务器 |
| [NewLife.Ftp](https://github.com/NewLifeX/NewLife.Ftp) | 2008 | 维护中 || Ftp客户端实现 |
| [NewLife.MySql](https://github.com/NewLifeX/NewLife.MySql) | 2018 | 开发中 || MySql驱动 |
| 产品平台 | | | | 产品平台级,编译部署即用,个性化自定义 |
| [AntJob](https://github.com/NewLifeX/AntJob) | 2019 | 开发中 || 蚂蚁调度系统,大数据实时计算平台 |
| [Stardust](https://github.com/NewLifeX/Stardust) | 2018 | 开发中 || 星尘,微服务平台,分布式平台 |
| [XLink](https://github.com/NewLifeX/XLink) | 2016 | 维护中 || 物联网云平台 |
| [NewLife.Net](https://github.com/NewLifeX/NewLife.Net) | 2005 | 维护中 || 网络库,千万级吞吐率,学习gRPC、Thrift |
| [XCoder](https://github.com/NewLifeX/XCoder) | 2006 | 维护中 | × | 码神工具,开发者必备 |
| [XProxy](https://github.com/NewLifeX/XProxy) | 2005 | 维护中 || 产品级反向代理 |
| [XScript](https://github.com/NewLifeX/XScript) | 2010 | 维护中 | × | C#脚本引擎 |
| [XTemplate](https://github.com/NewLifeX/XTemplate) | 2008 | 维护中 | × | 模版引擎,学习TT |
| [NewLife.DNS](https://github.com/NewLifeX/NewLife.DNS) | 2011 | 维护中 | × | DNS代理服务器 |
| [NewLife.CMX](https://github.com/NewLifeX/NewLife.CMX) | 2013 | 维护中 | × | 内容管理系统 |
| [SmartOS](https://github.com/NewLifeX/SmartOS) | 2014 | 保密中 | C++11 | 嵌入式操作系统,面向ARM Cortex-M芯片架构 |
| [SmartOS](https://github.com/NewLifeX/SmartOS) | 2014 | 保密中 | C++11 | 嵌入式操作系统,完全独立自主,ARM Cortex-M芯片架构 |
| [GitCandy](https://github.com/NewLifeX/GitCandy) | 2015 | 维护中 | × | Git管理系统 |
| [NewLife.MySql](https://github.com/NewLifeX/NewLife.MySql) | 2018 | 开发中 || MySql驱动 |
| 其它 | | | | |
| [XCoder](https://github.com/NewLifeX/XCoder) | 2006 | 维护中 | × | 码神工具,开发者必备 |
| [XTemplate](https://github.com/NewLifeX/XTemplate) | 2008 | 维护中 | × | 模版引擎,T4(Text Template)语法 |
| [X组件 .NET2.0](https://github.com/NewLifeX/X_NET20) | 2002 | 存档中 | .NET2.0 | 日志、网络、RPC、序列化、缓存、Windows服务、多线程 |
| [X组件 .NET4.0](https://github.com/NewLifeX/X_NET40) | 2002 | 存档中 | .NET4.0 | 日志、网络、RPC、序列化、缓存、Windows服务、多线程 |

Expand Down
4 changes: 2 additions & 2 deletions Test/Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="NewLife.Core, Version=8.1.7018.41218, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\NewLife.Core.8.1.2019.320\lib\net45\NewLife.Core.dll</HintPath>
<Reference Include="NewLife.Core, Version=8.2.7126.42291, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\NewLife.Core.8.2.2019.706\lib\net45\NewLife.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion Test/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NewLife.Core" version="8.1.2019.320" targetFramework="net46" />
<package id="NewLife.Core" version="8.2.2019.706" targetFramework="net46" />
</packages>

0 comments on commit b3a35f7

Please sign in to comment.