#!/bin/bash

##################################
### Check basic commands       ###
##################################

set -eo pipefail

cd "$AUTOPKGTEST_TMP"
dotnet new console --name TestConsole
cd TestConsole
dotnet new sln
dotnet sln TestConsole.sln add TestConsole.csproj
dotnet build TestConsole.sln

echo "Checking AppHost"
./bin/Debug/net7.0/TestConsole | grep -qF "Hello, World!"
echo "Checking Muxer"
dotnet run | grep -qF "Hello, World!"
