Krusen / BencodeNET

.NET library for encoding/decoding bencode and reading/writing torrent files
The Unlicense
152 stars 28 forks source link

Upgrade dotnet and dependency API's #59

Closed mavaddat closed 1 year ago

mavaddat commented 1 year ago

I have successfully tested and packaged the new code locally.

dotnet test --configuration Release
  Determining projects to restore...
  All projects are up-to-date for restore.
  BencodeNET -> C:\Users\mavad\Documents\GitHub\BencodeNET\BencodeNET\bin\Release\net6.0\BencodeNET.dll
  BencodeNET -> C:\Users\mavad\Documents\GitHub\BencodeNET\BencodeNET\bin\Release\net7.0\BencodeNET.dll
  BencodeNET.Tests -> C:\Users\mavad\Documents\GitHub\BencodeNET\BencodeNET.Tests\bin\Release\net6.0\BencodeNET.Tests.d
  ll
  BencodeNET.Tests -> C:\Users\mavad\Documents\GitHub\BencodeNET\BencodeNET.Tests\bin\Release\net7.0\BencodeNET.Tests.d
  ll
Test run for C:\Users\mavad\Documents\GitHub\BencodeNET\BencodeNET.Tests\bin\Release\net6.0\BencodeNET.Tests.dll (.NETCoreApp,Version=v6.0)
Microsoft (R) Test Execution Command Line Tool Version 17.4.0 (x64)
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
dotnet pack --no-build /p:Configuration=Release;SemVer=4.1.0 --verbosity Normal 
MSBuild version 17.4.0+18d5aef85 for .NET
Build started 2022-12-01 9:06:06 PM.
     1>Project "C:\Users\mavad\Documents\GitHub\BencodeNET\BencodeNET.sln" on node 1 (pack target(s)).
     1>ValidateSolutionConfiguration:
         Building solution configuration "Release|Any CPU".
     1>Project "C:\Users\mavad\Documents\GitHub\BencodeNET\BencodeNET.sln" (1) is building "C:\Users\mavad\Documents\Gi
       tHub\BencodeNET\BencodeNET\BencodeNET.csproj" (2) on node 1 (pack target(s)).
     2>GenerateNuspec:
         Successfully created package 'C:\Users\mavad\Documents\GitHub\BencodeNET\BencodeNET\bin\Release\BencodeNET.4.1
         .0.nupkg'.

         Attempting to build symbols package for 'BencodeNET.csproj'.
         Successfully created package 'C:\Users\mavad\Documents\GitHub\BencodeNET\BencodeNET\bin\Release\BencodeNET.4.1
         .0.symbols.nupkg'.
     2>Done Building Project "C:\Users\mavad\Documents\GitHub\BencodeNET\BencodeNET\BencodeNET.csproj" (pack target(s))
       .
     1>Done Building Project "C:\Users\mavad\Documents\GitHub\BencodeNET\BencodeNET.sln" (pack target(s)).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:03.76
dotnet --list-sdks
7.0.100-rc.2.22477.23 [C:\Program Files\dotnet\sdk]
7.0.100 [C:\Program Files\dotnet\sdk]
dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0-rc.2.22476.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0-rc.2.22472.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0-rc.2.22472.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]