lay295 / TwitchDownloader

Twitch VOD/Clip Downloader - Chat Download/Render/Replay
MIT License
2.72k stars 260 forks source link

error NETSDK1100: fails to restore project on Linux #860

Closed superbonaci closed 1 year ago

superbonaci commented 1 year ago

Checklist

Edition

Unsure

Describe your issue here

Download and install dotnet-sdk-7.0.402-linux-x64.tar.gz for linux according to instructions: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-7.0.402-linux-x64-binaries

then clone and try to restore:

$ dotnet restore
  Determining projects to restore...
/home/user/dotnet/sdk/7.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. [/home/user/TwitchDownloader/TwitchDownloaderWPF/TwitchDownloaderWPF.csproj]

Add any related files or extra information here

The CLI builds fine running the command directly, skip the restore step directly.

ScrubN commented 1 year ago

I forgot about this problem on Linux, you must specify dotnet restore TwitchDownloaderCLI. I will update the documentation.

ScrubN commented 1 year ago

Documentation has been updated

superbonaci commented 1 year ago

Thanks.