1TEST_PROGRAM='using System; 2using System.Runtime.InteropServices; 3 4static class Program 5{ 6 [DllImport("libsodium")] 7 static extern int sodium_init(); 8 9 static int Main() 10 { 11 int error = sodium_init(); 12 Console.WriteLine(error == 0 13 ? "ok" 14 : "error: sodium_init() returned {0}", error); 15 return error == 0 ? 0 : 1; 16 } 17} 18' 19 20dotnet --info 21cd ~ 22dotnet new console --name Test 23cd Test 24echo "$TEST_PROGRAM" > Program.cs 25dotnet add package libsodium --version $1 --source /io/packages 26dotnet restore 27dotnet run 28