lay295 / TwitchDownloader

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

error NETSDK1100: fails to restore project on Linux #860

Closed superbonaci closed 11 months ago

superbonaci commented 11 months 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 11 months ago

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

ScrubN commented 11 months ago

Documentation has been updated

superbonaci commented 11 months ago

Thanks.