Skip to content

Commit

Permalink
Add a test for framework-dependent apphost
Browse files Browse the repository at this point in the history
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
omajid committed Dec 7, 2018
1 parent 2def691 commit 8aed6cc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apphost-framework-lookup/test.json
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":[
]
}

11 changes: 11 additions & 0 deletions apphost-framework-lookup/test.sh
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

0 comments on commit 8aed6cc

Please sign in to comment.