mortenmoulder / TwitchClipper

Download Twitch.tv clips with a lot of customization
MIT License
24 stars 3 forks source link

Failed To restore TwitchClipper.csproj #10

Open idkzhao opened 1 year ago

idkzhao commented 1 year ago

I am trying to archive a channel's clips because of the recent Twitch Korea policy change. I found this program through /r/datahoarders, but I am not the experienced with these sorts of things.

I've downloaded the SDK 5.0.408 installer from here: https://dotnet.microsoft.com/en-us/download/dotnet/5.0

And have been following the instructions for installing on Windows: https://github.com/mortenmoulder/TwitchClipper/wiki/Windows

I've gotten to this step dotnet publish -c Release -o publish -p:PublishReadyToRun=true -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -p:IncludeNativeLibrariesForSelfExtract=true --runtime win-x64 TwitchClipper.sln

And PowerShell is returning a ton of errors?

PS E:\Twitch Clips\TwitchClipper> dotnet publish -c Release -o publish -p:PublishReadyToRun=true -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -p:IncludeNativeLibrariesForSelfExtract=true --runtime win-x64 TwitchClipper.sln
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'CommandLineParser (>= 2.8.0)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Configuration (>= 5.0.0)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Configuration.EnvironmentVariables (>= 5.0.0)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Configuration.Json (>= 5.0.0)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.DependencyInjection (>= 5.0.1)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Hosting (>= 5.0.0)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Hosting.Abstractions (>= 5.0.0)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Logging.Console (>= 5.0.0)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Logging.Debug (>= 5.0.0)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Newtonsoft.Json (>= 13.0.1)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Nito.AsyncEx.Coordination (>= 5.1.0)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'RunProcessAsTask (>= 1.2.4)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'SharpCompress (>= 0.28.3)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'CommandLineParser (>= 2.8.0)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Configuration (>= 5.0.0)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Configuration.EnvironmentVariables (>= 5.0.0)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Configuration.Json (>= 5.0.0)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.DependencyInjection (>= 5.0.1)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Hosting (>= 5.0.0)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Hosting.Abstractions (>= 5.0.0)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Logging.Console (>= 5.0.0)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.Extensions.Logging.Debug (>= 5.0.0)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Newtonsoft.Json (>= 13.0.1)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Nito.AsyncEx.Coordination (>= 5.1.0)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'RunProcessAsTask (>= 1.2.4)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'SharpCompress (>= 0.28.3)' for 'net5.0/win-x64'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.NETCore.App.Runtime.win-x64 (= 5.0.17)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.WindowsDesktop.App.Runtime.win-x64 (= 5.0.17)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj : error NU1100: Unable to resolve 'Microsoft.AspNetCore.App.Runtime.win-x64 (= 5.0.17)' for 'net5.0'. [E:\Twitch Clips\TwitchClipper\TwitchClipper.sln]
  Failed to restore E:\Twitch Clips\TwitchClipper\TwitchClipper.csproj (in 110 ms).

How do I fix this?

mortenmoulder commented 1 year ago

Hello there! Sorry to hear.

We have two options here: I help you fix it, so you can compile it yourself.. or you just download the already made binary file.

To compile it yourself, did you follow the guide on Windows and run the dotnet-install.ps1 -Channel 5.0 -Runtime aspnetcore command? You're saying you found the SDK on Microsoft's website, but that's not listed in the guide.

To download the binary, simply do to https://github.com/mortenmoulder/TwitchClipper/releases and grab the latest *-win-x64.zip file. The current one is this one: https://github.com/mortenmoulder/TwitchClipper/releases/download/1.0.12/TwitchClipper-1.0.12-win-x64.zip

Then all you have to do is edit the appsettings.json file according to the documentation and you should be up and running 😃