Update Agent samples validation

This commit is contained in:
Shyju Krishnankutty
2026-03-16 16:56:06 -07:00
Unverified
parent ea272a6530
commit 91fcd9b29b
@@ -825,7 +825,7 @@ public sealed class SamplesValidation(ITestOutputHelper outputHelper) : IAsyncLi
ProcessStartInfo buildInfo = new()
{
FileName = "dotnet",
Arguments = $"build -f {s_dotnetTargetFramework}",
Arguments = $"build -f {s_dotnetTargetFramework} -c Release",
WorkingDirectory = samplePath,
UseShellExecute = false,
RedirectStandardOutput = true,
@@ -855,7 +855,7 @@ public sealed class SamplesValidation(ITestOutputHelper outputHelper) : IAsyncLi
ProcessStartInfo startInfo = new()
{
FileName = "dotnet",
Arguments = $"run --no-build -f {s_dotnetTargetFramework} --port {AzureFunctionsPort}",
Arguments = $"run --no-build -f {s_dotnetTargetFramework} -c Release --port {AzureFunctionsPort}",
WorkingDirectory = samplePath,
UseShellExecute = false,
RedirectStandardOutput = true,