Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Console App that refer an external dll

Console App that refer an external dll

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpasp-netdotnetlinuxhelp
2 Posts 2 Posters 12 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Skeletro 3M
    wrote on last edited by
    #1

    Hello to all, I'm developing a test console app that refers to an external dll, made with VS2022 and .net core 3.1. Th console App should work on debian 10 and an arm processor. I've installed all the netcore packages on debian, ad I've tested the "hello word" app in dotnet core. Now I'm trying to create a "single file" .netcore console application that uses an external dll. I've managed to have a "single file" application for the console app and a "single file" dll for the external library. Every time I try to start the console app the system gives me the error:

    A fatal error occurred. The required library libhostfxr.so could not be found.
    If this is a self-contained application, that library should exist in [/root/.net/SPLX/eY3MeD2sHDeSKgxGgVmzXD_NUUU2hdE=/].
    If this is a framework-dependent application, install the runtime in the global location [/usr/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].

    The .NET Core runtime can be found at:

    • https://aka.ms/dotnet-core-applaunch?missing\_runtime=true&arch=arm&rid=debian.10-arm

    Anyone knows how to solve this? Thank you

    B 1 Reply Last reply
    0
    • S Skeletro 3M

      Hello to all, I'm developing a test console app that refers to an external dll, made with VS2022 and .net core 3.1. Th console App should work on debian 10 and an arm processor. I've installed all the netcore packages on debian, ad I've tested the "hello word" app in dotnet core. Now I'm trying to create a "single file" .netcore console application that uses an external dll. I've managed to have a "single file" application for the console app and a "single file" dll for the external library. Every time I try to start the console app the system gives me the error:

      A fatal error occurred. The required library libhostfxr.so could not be found.
      If this is a self-contained application, that library should exist in [/root/.net/SPLX/eY3MeD2sHDeSKgxGgVmzXD_NUUU2hdE=/].
      If this is a framework-dependent application, install the runtime in the global location [/usr/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].

      The .NET Core runtime can be found at:

      • https://aka.ms/dotnet-core-applaunch?missing\_runtime=true&arch=arm&rid=debian.10-arm

      Anyone knows how to solve this? Thank you

      B Offline
      B Offline
      Bohdan Stupak
      wrote on last edited by
      #2

      I'm not sure whether this question is still relevant but it misses the most crucial piece: how does your project reference your library. Anyways, the most convenient way of attaching external dependencies is Nuget package manager. You can learn more in official docs What is NuGet and what does it do? | Microsoft Docs[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups