Bug 1703479 - Broken apphost caused by unset DOTNET_ROOT
Summary: Broken apphost caused by unset DOTNET_ROOT
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: dotNET
Classification: Red Hat
Component: rh-dotnet22
Version: 2.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ga
: 2.2
Assignee: Omair Majid
QA Contact: Radka Gustavsson
Les Williams
URL:
Whiteboard:
Depends On:
Blocks: 1702415
TreeView+ depends on / blocked
 
Reported: 2019-04-26 14:34 UTC by Omair Majid
Modified: 2019-05-15 21:54 UTC (History)
5 users (show)

Fixed In Version: rh-dotnet22-2.2-6.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-15 21:54:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:1236 0 None None None 2019-05-15 21:54:49 UTC

Description Omair Majid 2019-04-26 14:34:01 UTC
Description of problem:

One of the newer features in .NET Core 2.2 is having an executible even for framework-dependent applications.

It works like this:

1. mkdir Project
2. cd Project
3. scl enable rh-dotnet22 bash
4. dotnet new console
5. dotnet publish -r linux-x64 --self-contained false
6. ./bin/Debug/netcoreapp*/linux-x64/publish/Project

Actual results:

At step 6, though, our builds fail with an error saying dotnet can't be found.

Expected results:

"Hello World"

Additional info:

The fix is to set DOTNET_ROOT to point to our .NET Core installation.

Comment 5 errata-xmlrpc 2019-05-15 21:54:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:1236


Note You need to log in before you can comment on or make changes to this bug.