From 8aed6cce51b1c98d2404903248e3dea0cc2c35cb Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Fri, 7 Dec 2018 16:20:17 -0500 Subject: [PATCH] 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 --- apphost-framework-lookup/test.json | 11 +++++++++++ apphost-framework-lookup/test.sh | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 apphost-framework-lookup/test.json create mode 100755 apphost-framework-lookup/test.sh diff --git a/apphost-framework-lookup/test.json b/apphost-framework-lookup/test.json new file mode 100644 index 0000000..0cba133 --- /dev/null +++ b/apphost-framework-lookup/test.json @@ -0,0 +1,11 @@ +{ + "name": "apphost-framework-lookup", + "enabled": true, + "version": "3.0", + "versionSpecific": false, + "type": "bash", + "cleanup": true, + "platformBlacklist":[ + ] +} + diff --git a/apphost-framework-lookup/test.sh b/apphost-framework-lookup/test.sh new file mode 100755 index 0000000..adcff20 --- /dev/null +++ b/apphost-framework-lookup/test.sh @@ -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