-1

When I want to run the .dll file in the Ubuntu system, this error :

Could not resolve CoreCLR path. For more details, enable tracing by setting COREHOST_TRACE environment variable to 1

Can any of you help me?

enter image description here

Majid Hajibaba
  • 3,105
  • 6
  • 23
  • 55

1 Answers1

0

I had the same issue with .Net 6.0 in an Ubuntu AWS instance. It turns out that you have to include --self-contained option when publishing, like this:

dotnet publish backend/bundle_name.sln -c release -r linux-x64 -o /artifacts/bin --self-contained

You also have to set RuntimeIdentifier in you csprojects. See this another issue.

Jacobson
  • 674
  • 5
  • 10