question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YoutubeExplode.DemoConsole using .NET Core Command Line Tool (2.1.519), (3.1.404) and .NET Command Line Tool (5.0.101) not working

See original GitHub issue

Hi,

If I go to the YoutubeExplode.DemoConsole folder (netcore2.1.519 installed on my system) and run

dotnet run

I get a bunch of errors. They all look related to YoutubeExplode using language sugar/constructs not supported by netcore2.1. E.g.

ReverseEngineering\Responses\PlayerResponse.cs(275,73): error CS8124: Tuple must contain at least two elements. 
Channels\ChannelId.cs(98,81): error CS8124: Tuple must contain at least two elements. 
Internal\Html.cs(8,61): error CS8124: Tuple must contain at least two elements. 
ReverseEngineering\Responses\PlayerResponse.cs(275,73): error CS1026: ) expected 
Internal\Html.cs(8,62): error CS1526: A new expression requires (), [], or {} after type 
Internal\Extensions\AsyncEnumerableExtensions.cs(12,19): error CS1525: Invalid expression term 'foreach' 
...

You state it works with netcore2.0+ so am I missing something?

Thank you

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ohenleycommented, Jan 4, 2021

Hi @Tyrrrz The rough experience started because I only have VS2017 on this machine. About the .NET 5.0 SDK not working for me… maybe it is my bad, while I think about it I may have forgotten to properly set <TargetFrameworks> as I was brute-forcing my way at some point.

Thx for the feedback.

0reactions
Tyrrrzcommented, Dec 31, 2020

Hi @ohenley Sorry you had such a rough experience. Normally, it should work with just .NET 5.0 SDK. That said, the issues you mentioned in this comment seem weird. I can’t reproduce this locally, nor on CI (which also runs .NET 5.0 SDK).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot .NET tool usage issues
Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a built-in dotnet...
Read more >
Unable to publish on command line using publish profile
I'm trying to automate the publishing of a .Net Core app on the Mac/Linux command line using the "dotnet" tool. No command I've...
Read more >
No executable found matching command "dotnet-tool"
The dotnet tool command is only installed with the release of .NET Core SDK version 2.1.300 and later. You need to update your...
Read more >
Using .NET Core Tools to Create Reusable and Shareable ...
Start by creating a .NET Core Console project. I'll use the dotnet Command line tooling, but you can also use Visual Studio (or...
Read more >
Minimal March – Part 1: Getting Started with .NET and C# at ...
I can build and run .NET Core, Blazor, and ASP.NET Core applications in Linux all at the command line. There are so many...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found