forked from redhat-developer/dotnet-regular-tests
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for framework-dependent apphost
Starting in .NET Core 3.0, `dotnet publish` can produce framework-dependent executibles instead of framework dependent dll files. But these can fail to work out of the box unless .NET Core is installed in a known location or DOTNET_ROOT is defined. See https://github.com/dotnet/cli/issues/9114
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "apphost-framework-lookup", | ||
"enabled": true, | ||
"version": "3.0", | ||
"versionSpecific": false, | ||
"type": "bash", | ||
"cleanup": true, | ||
"platformBlacklist":[ | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
set -x | ||
|
||
mkdir bin | ||
cd bin | ||
|
||
dotnet new console | ||
dotnet publish -r linux-x64 --self-contained false | ||
./bin/Debug/netcoreapp3.0/linux-x64/publish/bin |