dotnet / TorchSharp

A .NET library that provides access to the library that powers PyTorch.
MIT License
1.41k stars 182 forks source link

Why this dotnet pack error? #1366

Closed GeorgeS2019 closed 3 months ago

GeorgeS2019 commented 3 months ago

I did the latest git pull then dotnet pack

C:\Program Files\dotnet\sdk\8.0.303\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ApiCompat.ValidatePackage.targets(39,5
): error PKV006: Target framework net6.0 is no longer supported in the latest version. [C:\TorchSharp\pkg
\TorchAudio\TorchAudio.nupkgproj::TargetFramework=netstandard2.0]
C:\Program Files\dotnet\sdk\8.0.303\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ApiCompat.ValidatePackage.targets(39,5
): error PKV006: Target framework net6.0 is no longer supported in the latest version. [C:\TorchSharp\pkg
\TorchAudio\TorchAudio.nupkgproj::TargetFramework=netstandard2.0]
C:\Program Files\dotnet\sdk\8.0.303\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ApiCompat.ValidatePackage.targets(39,5
): error PKV006: Target framework .NETStandard,Version=v2.0 is no longer supported in the latest version. [C:\TorchSharp\pkg\TorchAudio\TorchAudio.nupkgproj::TargetFramework=netstandard2.0]
C:\Program Files\dotnet\sdk\8.0.303\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ApiCompat.ValidatePackage.targets(39,5
): error PKV006: Target framework .NETStandard,Version=v2.0 is no longer supported in the latest version. [C:\TorchSharp\pkg\TorchAudio\TorchAudio.nupkgproj::TargetFramework=netstandard2.0]
C:\Program Files\dotnet\sdk\8.0.303\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ApiCompat.ValidatePackage.targets(39,5
): error : API breaking changes found. If those are intentional, the APICompat suppression file can be updated by rebui
lding with '/p:ApiCompatGenerateSuppressionFile=true' [C:\TorchSharp\pkg\TorchAudio\TorchAudio.nupkgproj:
:TargetFramework=netstandard2.0]