Introduction to Language Integrated Query (LINQ) | C# Advanced [1 of 8]

Play Introduction to Language Integrated Query (LINQ) | C# Advanced [1 of 8]

The Discussion

  • User profile image
    sipi41
    If this is an "Introduction" I would suggest that you provide step by step instructions on how to download the samples, I have almost 1 hour here trying to make this thing work and I can't... so I have to abandon this and go back to my book :(

    Here are the steps I have done so far:

    1. Installed Bash, so I can clone using the bash command prompt and use the "git clone https://github.com/dotnet/try.git"
    2. After I did clone I have a folder called try with a bunch of files and directories...
    3. When I run the command "dotnet try" I get an error saying:
    -----------------
    A compatible installed .NET Core SDK for global.json version [3.0.101] from [C:\temp\try\global.json] was not found
    Install the [3.0.101] .NET Core SDK or update [C:\temp\try\global.json] with an installed .NET Core SDK:
    2.1.700 [C:\Program Files\dotnet\sdk]
    2.1.800-preview-009696 [C:\Program Files\dotnet\sdk]
    2.1.800 [C:\Program Files\dotnet\sdk]
    2.2.300 [C:\Program Files\dotnet\sdk]
    3.0.100-preview8-013656 [C:\Program Files\dotnet\sdk]
    3.1.100-preview3-014645 [C:\Program Files\dotnet\sdk]
    3.1.100 [C:\Program Files\dotnet\sdk]
    -----------------------------
    what comes to my mind is that I have to find the file and replace the SDK value on the json file
    with one that I have installed in my machine... am I correct? so I decided to replace with the
    latest one, in this case, 3.1.100

    4) When I save the file and run, I get another generic error and the path is shut!
    --------------
    Could not execute because the specified command or file was not found.
    Possible reasons for this include:
    * You misspelled a built-in dotnet command.
    * You intended to execute a .NET Core program, but dotnet-try does not exist.
    * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
    --------------
    what path? what dotnet command? what exactly is the problem here??

    I'm sorry, but I think this guide lacks of many steps, so much information is missing... how can I learn this way?? thank for your attention to my message.
  • User profile image
    Rep

    @sipi41, hey, just download SDK 3.1, install it and your problem solves. Google sdk 3.1 and you will find install file.

  • User profile image
    Rakesh

    It's Working for me. Thanks for sharing.

  • User profile image
    mrprietzel
    Looks like you can find the samples here https://linqsamples.com/
  • User profile image
    mrprietzel
  • User profile image
    Doctor Who
    Thank you for this tutorial, Mika and Bill. In this episode you introduced both the query syntax version of LINQ and the method syntax version of LINQ. Then you said that one gets translated into the other, probably (I'm guessing) in the build process. Which gets translated into the other?
  • User profile image
    codefool

    agree with Sipi41, this vid is confusing. Can anyone do a step by step on what I need to do? I have Visual Studio, .NET Core SDK 3.1, and can open a run prompt. What steps do I need to do?

  • User profile image
    chandramaul​iv
    C# 101 was much better. A more detailed video would be great help!
  • User profile image
    Lily

    This misses many step-by-step instructions for audience to follow the tutorials.
    Without proper instructions at the beginning of video series, the rest of the videos is not really helpful

  • User profile image
    MDLohan

Add Your 2 Cents