[Urgent] I can't integrate *.dll in OB2 namespaces

Working Fine in VS Code

------------------------------------------------------------------------------
You may only use the Microsoft Visual Studio .NET/C/C++ Debugger (vsdbg) with
Visual Studio Code, Visual Studio, or Visual Studio for Mac software to help you
develop and test your applications.
------------------------------------------------------------------------------
Ethereum Address: 0x627306090abaB3A6e1400e9345bC60c78a8BEf57
The program '[49640] ConsoleApp1.exe' has exited with code 0 (0x0).

I want to test with OpenBullet namespaces, So I Try like that :

[IDLE] CompilationErrorException: (7,15): error CS0012: Le type 'Account' est défini dans un assembly qui n'est pas référencé. Vous devez ajouter une référence à l'assembly 'Nethereum.Accounts, Version=4.27.0.0, Culture=neutral, PublicKeyToken=8768a594786aba4e'. 

Code Source :


        string mnemonic = "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat";

        // Initialize the wallet
        Wallet wallet = new Wallet(mnemonic, null);

        // Get the first Ethereum account
        var account = wallet.GetAccount(0);
        Console.WriteLine("Ethereum Address: " + account.Address);

Nuget Package : NuGet Gallery | Nethereum.HdWallet 4.27.1

Please I need Help

I am not sure about it, but I think you need to add your dependencies dll too at the folder to work

1 Like

yes brother i did

Hello @RifHut

If you don’t succeed I will make you a video so you can see how to do it @RifHut

1 Like

hello, i try all that but when i add a DLL the application crashed

please test for me this is the code :

namespaces :

System
Nethereum.HdWallet
//it needs other namespaces, but when I add Nethereum.xxxxxx  with command : dotnet add package Nethereum.Accounts, I got errors, if I restart OB
string mnemonic = "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat";

        // Initialize the wallet
        Wallet wallet = new Wallet(mnemonic, null);

        // Get the first Ethereum account
        var account = wallet.GetAccount(0);
        Console.WriteLine("Ethereum Address: " + account.Address);

Thank you in advance

Please Make Me a video I think this is a bug or something.

Various possibilities as there for crash

  1. Check the Nethereum.HdWallet Dependencies is there anything, add that dll tops, Means Dependencies of dependencies
  2. Try the Lower version of OB2 and lower version of Nethereum.HdWallet package maybe bug or issue on either one
1 Like

Hello
Solved @RifHut ?

1 Like

Not yet Brother,

Thank You For Your feedback