Bug 1703479

Summary: Broken apphost caused by unset DOTNET_ROOT
Product: dotNET Reporter: Omair Majid <omajid>
Component: rh-dotnet22Assignee: Omair Majid <omajid>
Status: CLOSED ERRATA QA Contact: Radka Gustavsson <rjanekov>
Severity: unspecified Docs Contact: Les Williams <lwilliam>
Priority: unspecified    
Version: 2.2CC: andrew.slice, bodavis, dbhole, kanderso, rwagner
Target Milestone: ga   
Target Release: 2.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rh-dotnet22-2.2-6.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-15 21:54:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1702415    

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