fa47e95e90
Implement a simple launcher tool for running new processes on Windows - This application takes two parameters via the .exe.config configuration file - entryPoint: required - the file path to the new process being launched - runner: optional - the executable or interpretter used to launch the entryPoint - Update dotnet-install-tool to generate an exe instead of a batch script file
23 lines
588 B
C#
23 lines
588 B
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
using System;
|
|
|
|
namespace ConsoleApplication
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
Console.WriteLine("Hello World!");
|
|
|
|
if (args.Length > 0)
|
|
{
|
|
for (int i = 0; i < args.Length; i++)
|
|
{
|
|
Console.WriteLine($"{i} = {args[i]}");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|