Add a test case for a desktop app using Command.CreateDotnet, expecting to fail
This commit is contained in:
parent
bc8b0c065f
commit
56194a8e12
9 changed files with 142 additions and 18 deletions
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using Microsoft.DotNet.Cli.Utils;
|
||||
using System.IO;
|
||||
|
||||
namespace DesktopAppWhichCallsDotnet
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static int Main(string[] args)
|
||||
{
|
||||
var projectPath = args[0];
|
||||
|
||||
return Command.CreateDotNet("build", new string[] {})
|
||||
.WorkingDirectory(Path.GetDirectoryName(projectPath))
|
||||
.ForwardStdErr()
|
||||
.ForwardStdOut()
|
||||
.Execute()
|
||||
.ExitCode;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue