Unable to run https://github.com/LSEG-API-Samples/Example.DataLibrary.DotNet

JoelM
JoelM Newcomer

The sample has dependencies on the below Nuget package which i cannot find:

LSEG.Data.Core

Answers

  • Hi @JoelM

    The LSEG.Data.Core is part of the LSEG.Data NuGet package which is automatically downloaded when you open the Example.DataLibrary.DotNet project - assuming you opened the example project in Visual Studio 2022. If you opened in Visual Studio Code, you will need to restore the NuGet packages using:

    > dotnet restore

    Perhaps you can explain what you did - step by step - so we can help guide.

  • JoelM
    JoelM Newcomer

    Below is what I did:

    1)Created a simple Console C# Application

    2)Tried to add the LSEG.Data Nuget Package and i got the following error:

    NU1102: Unable to find package AWSSDK.Core with version (>= 3.7.400.36)

    I am using VS 2022.

  • nick.zincone
    nick.zincone admin
    edited April 21

    @JoelM,

    Actually, I want to know before that - did you download the example package? I would prefer you get that working properly first. That is, you

    1. Downloaded the Example package from Git
    2. Opened the example package within VS 2022
    3. Ran a sample project??

    As mentioned above, when you open the example project within Visual Studio, you can see a little status message in the bottom left showing it is restoring NuGet packages - are there errors?

  • nick.zincone
    nick.zincone admin
    edited April 21

    @JoelM

    When I try to create a new console app, I select the LSEG.Data.Content (It should pull in the LSEG.Data automatically as it is a dependency) and observe the following within the Package Manager output window:

    image.png
  • JoelM
    JoelM Newcomer

    Ok I:

    1)downloaded the Example package from Git

    2)Opened VS 2022

    3)When i build the solution it is unable to find package:
    Unable to find package AWSSDK.Core with version (>= 3.7.400.36)

  • nick.zincone
    nick.zincone admin
    edited April 21

    @JoelM

    Please provide a screenshot of the output within Package Manager window when you install the LSEG.Data.Content package - like I have in my previous answer.

    The AWSSDK.Core package should be downloading automatically. For example, this popup occurs when I click on "Install":

    image.png

    You can see it is going to install the AWSSDK package.

    Then when you "Apply" and "Accept", you should see a window like I have below showing AWSSDK installed. Something is happening within your environment/firewall (not sure) preventing the packages from downloading.

    You can force a package restore as I mentioned previously. Within the Package Manager, you can try this:

    > dotnet restore

  • JoelM
    JoelM Newcomer

    Let me come back on this later. I think it has something to do with my internal setup.