Move and "publish" EchoArgs for the tests

* Move EchoArgs from test/EchoArgs to test/tools/EchoArgs
* Use "dotnet publish" for building EchoArgs in build.psm1 so the test
  can call it directly
This commit is contained in:
Douglas Thrift committed 2016-09-13 13:37:42 -07:00
1 parent 7816516c24
commit 7e8070276f
5 files changed
+20 -16

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
//---------------------------------------------------------------------
// Author: Keith Hill
//
// Description: Very simple little console class that you can use to see
// how PowerShell is passing parameters to legacy console
// apps.
//
// Creation Date: March 06, 2006
//---------------------------------------------------------------------
using System;
namespace Pscx.Applications
{
class EchoArgs
{
static void Main(string[] args)
{
for (int i = 0; i < args.Length; i++)
{
Console.WriteLine("Arg {0} is <{1}>", i, args[i]);
}
}
}
}
+28
View File
@@ -0,0 +1,28 @@
{
"name": "echoargs",
"version": "1.0.0-*",
"description": "Very simple little console class that you can use to see how PowerShell is passing parameters to legacy console apps.",
"buildOptions": {
"emitEntryPoint": true
},
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": "1.0.0"
}
}
},
"runtimes": {
"ubuntu.16.04-x64": { },
"ubuntu.14.04-x64": { },
"debian.8-x64": { },
"centos.7-x64": { },
"win7-x64": { },
"win81-x64": { },
"win10-x64": { },
"osx.10.11-x64": { }
}
}