Skip to content

Build TdLib for C# and run TdExample #1863

@KomodoCrypto

Description

@KomodoCrypto

Hello, I am trying to execute the TdExample, but I am getting an error of Telegram.Td reference is missing. I am opening this thread because, after reading the available documentation, I found some differences that are not clear for me about what is the current status of the example and I am not able to make it run despite of the old posts with similar problems.

  1. I build TdLib for .Net Core, x64, based on these steps: build steps

  2. After a success build, I have the following libraries available:

image

  1. When opening the TdExample project, a Telegram.Td is missing, but I guess that instead of Tlelgram.Td, the compiled libraries of previous point are the ones needed. Right?

image

  1. If I try to add the dlls as a references, I am getting the error:

image

I built the project for Net Core option, but the example is targeted as Net Framework 4.6.1...

  1. I created a new .Net Core 5.0 project and I tried to add the dlls too. However, I am getting this error:

image

The readme file of the example says that should run directly, however, I think that is outdated and requires to rebuild the solution with the new libs. Thank you for the clarification of the steps and suggestions!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions