Tôi đang sử dụng .NETCore với C# và khi tôi đã làm dotnet restore
nó đã cho các lỗi sau:DotNet khôi phục cảnh báo NU1701
PS C:\workspace\Arbitrator> dotnet restore
C:\workspace\Arbitrator\Arbitrator.csproj : warning NU1701: Package 'PusherClient 0.5.0' was restored using '.NETFramework,Version=v4.6.1' instead the project target framework '.NETCoreApp,Version=v2.0'. This may cause compatibility problems. C:\workspace\Arbitrator\Arbitrator.csproj : warning NU1701: Package 'WebSocket4Net 0.14.1' was restored using '.NETFramework,Version=v4.6.1' instead the project target framework '.NETCoreApp,Version=v2.0'. This may cause compatibility problems.
gói trong vấn đề này là PusherClient, tôi chỉ đi theo các tài liệu nugget để nhập nó, làm thế nào tôi có thể khắc phục cảnh báo này không?
Có thể chặn cảnh báo như vậy không? – mateuszlewko
Có, hãy đặt NU1701 PropertyGroup> vào csproj của bạn –