QQMusicLib 0.1.1
dotnet add package QQMusicLib --version 0.1.1
NuGet\Install-Package QQMusicLib -Version 0.1.1
<PackageReference Include="QQMusicLib" Version="0.1.1" />
paket add QQMusicLib --version 0.1.1
#r "nuget: QQMusicLib, 0.1.1"
// Install QQMusicLib as a Cake Addin #addin nuget:?package=QQMusicLib&version=0.1.1 // Install QQMusicLib as a Cake Tool #tool nuget:?package=QQMusicLib&version=0.1.1
Hzexe.QQMusic
解析QQ音乐的库,支持无损品质解析和下载<br />
Package | Branch | Visual Studio 2017 | Linux .Net Core | 多平台Native库 |
---|---|---|---|---|
NuGet | master |
功能
- 按歌名搜索
- 下载指定歌曲的指定品质文件
- 下载歌词
演示截图
安装
Package manager:
Install-Package QQMusicLib
.NET CLI:
dotnet add package QQMusicLib
使用示例
https://github.com/hzexe/Hzexe.QQMusic/tree/master/Example
从源码编译
- 获取源码
git clone https://github.com/hzexe/Hzexe.QQMusic.git
Or
svn checkout https://github.com/hzexe/Hzexe.QQMusic.git
修改以满足你需求的目标运行库 项目配置成支持多种.NET运行时,如果编译环境缺少相关SDK,导致编译部分失败或完全失败.错误号MSB3644,提示大致是:
/home/android/dotnet/sdk/2.2.101/Microsoft.Common.CurrentVersion.targets(1179,5): error MSB3644: The reference assemblies for framework NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [/home/android/Hzexe.QQMusic/Example/WindowsFormsApp/WindowsFormsApp.csproj]
:使用文本编辑工具打开QQMusic.hzexe.com.csproj,修改TargetFrameworks 比如在非Windows下修改成
<TargetFrameworks>netstandard1.6;netstandard2.0</TargetFrameworks>
比如Windows下修改成
<TargetFrameworks>net45</TargetFrameworks>
等
编译工具执行编译
- Visual Studio 2017 打开解决方案直接编译成Release或在开发人员命令提示符下运行msbuild /p:Configuration=Release<br />
- .NET Core(2.1或以上版本,已知在Linux Arm64下需要3.0或以上版本coreclr_issues_19578<br />
dotnet build -f netstandard1.6 QQMusic.hzexe.com
3.Native库编译
.net core下执行:<br />
dotnet publish /p:NativeLib=Shared -r win-x64 -c release QQMusic_Native_Library
其中参数值NativeLib可以为Static 为静态库<br />
其中-r参数是你要的目标运行时,win-x64 linux-x64 osx-x64 android等,更多见[RID Catalog](https://docs.microsoft.com/en-us/dotnet/core/rid-catalog)。<br />
win-x64有个使用native库的[vc示例](https://github.com/hzexe/Hzexe.QQMusic/tree/master/Example/Windows_x64) <br />
可能是CoreRT还没有Release的原因,分别在ubuntu和windows下尝试交叉编译失败。
其它
限技术交流,不对使用本库后果负责
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.6 is compatible. netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 is compatible. net452 is compatible. net46 is compatible. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 12.0.1)
-
.NETFramework 4.5.1
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 12.0.1)
-
.NETFramework 4.5.2
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 12.0.1)
-
.NETFramework 4.6
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 12.0.1)
-
.NETFramework 4.6.1
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 12.0.1)
-
.NETStandard 1.6
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 12.0.1)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 12.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.