&&?&& Cmd = new List<string>
{
"bash",
"-c",
$"mkdir /app && cd /app && " +
$"{(language == ProgrammingLanguage.Csharp ? $"echo '{projectFileContent}' > ProjectFile.csproj && " : "")}" +
$"{(language == ProgrammingLanguage.Csharp ? $"echo '{userFile}' > UserCode.cs && " : "")}" +
//$"echo '{userCode}' > UserCode.{fileExtension} && " +
$"echo chuj.txt > 'chuj.txt' && " +
$"echo '{allTestCode}' > Test.{fileExtension} && " +
$"dotnet run"
}, var containerCreateParams = new CreateContainerParameters
{
Image = imageName,
Cmd = new List<string>
{
"bash",
"-c",
$"mkdir app && cd app && " +
$"{(language == ProgrammingLanguage.Csharp ? $"echo '{projectFileContent}' > ProjectFile.csproj && " : "")}" +
$"{(language == ProgrammingLanguage.Csharp ? $"echo '{userFile}' > UserCode.cs && " : "")}" +
//$"echo '{userCode}' > UserCode.{fileExtension} && " +
$"echo chuj.txt > 'chuj.txt' && " +
$"echo '{allTestCode}' > Test.{fileExtension} && " +
$"dotnet run"
},
Tty = true,
OpenStdin = true,
StdinOnce = true,
HostConfig = new HostConfig
{
AutoRemove = false,
},
};