Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

Commit

Permalink
降低依赖项 .NET Framework (>= 4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Feb 27, 2019
1 parent d063f82 commit 9315e54
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Meting4Net.Core/Meting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class Meting
/// <summary>
/// 当前版本
/// </summary>
public const string VERSION = "1.1.1";
public const string VERSION = "1.1.2";

private string _raw;
private string _data;
Expand Down
30 changes: 21 additions & 9 deletions src/Meting4Net.Core/Meting4Net.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,38 +1,41 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!--<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>-->
<TargetFrameworks>net40;net45;netstandard2.0</TargetFrameworks>
<!--<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>-->
<!--<TargetFramework>net45</TargetFramework>-->
<TargetFramework>netcoreapp2.0</TargetFramework>
<!--<TargetFramework>netcoreapp2.0</TargetFramework>-->
<!-- 注意:当使用单元测试时,必须明确目标框架,参考 https://github.com/nunit/docs/wiki/.NET-Core-and-.NET-Standard#why-cant-my-tests-target-net-standard -->
<!-- 不知道为什么,net45 无法测试依然提示未找到测试方法,让明确平台框架 -->

<Authors>yiyun</Authors>
<Company>yiyun</Company>
<!-- 主要版本.次要版本.修订 -->
<Version>1.1.1</Version>
<Version>1.1.2</Version>
<Description>Wow, such a powerful music API framework for .Net</Description>
<Copyright>Copyright (c) 2019 yiyun</Copyright>
<PackageLicenseUrl>https://github.com/yiyungent/Meting4Net/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://yiyungent.github.io/Meting4Net</PackageProjectUrl>
<RepositoryUrl>https://github.com/yiyungent/Meting4Net</RepositoryUrl>
<NeutralLanguage />
<!-- 程序集版本 -->
<AssemblyVersion>1.1.0.1</AssemblyVersion>
<AssemblyVersion>1.1.0.2</AssemblyVersion>
<!-- 主要版本.次要版本.内部版本号.修订 -->
<!-- 程序集的文件版本 -->
<FileVersion>1.1.0.1</FileVersion>
<FileVersion>1.1.0.2</FileVersion>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageId>Meting4Net</PackageId>
<PackageIconUrl>https://github.com/yiyungent/Meting4Net/blob/master/docs/_media/favicon.png?raw=true</PackageIconUrl>
<PackageTags>music api</PackageTags>
<PackageReleaseNotes>
## Changed
- 降低依赖项 Newtonsoft.Json 版本
目前音乐API支持:网易云音乐,腾讯QQ音乐,虾米,酷狗,百度
Changed
降低依赖项 .NET Framework (&gt;= 4.0)
</PackageReleaseNotes>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net40|AnyCPU'">
<DocumentationFile>bin\Release\net40\Meting4Net.Core.xml</DocumentationFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net45|AnyCPU'">
<DocumentationFile>bin\Release\net45\Meting4Net.Core.xml</DocumentationFile>
Expand All @@ -45,6 +48,11 @@
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
</ItemGroup>

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

<ItemGroup Condition="'$(TargetFramework)' == 'net45'">
<Reference Include="System.Web" />
Expand All @@ -54,9 +62,13 @@
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
</ItemGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net40'">
<DefineConstants>NETFULL40</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net45'">
<DefineConstants>NETFULL</DefineConstants>
<DefineConstants>NETFULL45</DefineConstants>
</PropertyGroup>

</Project>

0 comments on commit 9315e54

Please sign in to comment.