diff --git a/test/distrib/csharp/run_distrib_test_dotnetcli.sh b/test/distrib/csharp/run_distrib_test_dotnetcli.sh index 97bef26d399..69257edde43 100755 --- a/test/distrib/csharp/run_distrib_test_dotnetcli.sh +++ b/test/distrib/csharp/run_distrib_test_dotnetcli.sh @@ -68,9 +68,14 @@ if [ "${SKIP_NET50_DISTRIBTEST}" != "1" ] then dotnet publish -f net5.0 DistribTestDotNet.csproj + dotnet publish -r linux-x64 -f net5.0 DistribTestDotNet.csproj -p:PublishSingleFile=true --self-contained true --output net5_singlefile_publish + # .NET Core target after dotnet build dotnet exec bin/Debug/net5.0/DistribTestDotNet.dll # .NET Core target after dotnet publish dotnet exec bin/Debug/net5.0/publish/DistribTestDotNet.dll + + # binary generated by the single file publish + ./net5_singlefile_publish/DistribTestDotNet fi