From 47cf8fbda6134ab9837234faeb12e51ccfa968d5 Mon Sep 17 00:00:00 2001 From: Bryan Thornbury Date: Mon, 22 Aug 2016 12:23:54 -0700 Subject: [PATCH] Additional TestAssets --- .../TestAppWithMigrateAbleScripts/Program.cs | 17 +++++++++++ .../echoscript.cmd | 2 ++ .../echoscript.sh | 2 ++ .../project.json | 29 +++++++++++++++++++ .../TestAppWithRuntimeOptions/Program.cs | 12 ++++++++ .../TestAppWithRuntimeOptions/project.json | 26 +++++++++++++++++ 6 files changed, 88 insertions(+) create mode 100644 TestAssets/TestProjects/TestAppWithMigrateAbleScripts/Program.cs create mode 100644 TestAssets/TestProjects/TestAppWithMigrateAbleScripts/echoscript.cmd create mode 100755 TestAssets/TestProjects/TestAppWithMigrateAbleScripts/echoscript.sh create mode 100644 TestAssets/TestProjects/TestAppWithMigrateAbleScripts/project.json create mode 100644 TestAssets/TestProjects/TestAppWithRuntimeOptions/Program.cs create mode 100644 TestAssets/TestProjects/TestAppWithRuntimeOptions/project.json diff --git a/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/Program.cs b/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/Program.cs new file mode 100644 index 000000000..7bcd4fbd3 --- /dev/null +++ b/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/Program.cs @@ -0,0 +1,17 @@ +// 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; +using System.Diagnostics; + +namespace TestApp +{ + public class Program + { + public static int Main(string[] args) + { + Console.WriteLine("Hello World"); + return 0; + } + } +} diff --git a/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/echoscript.cmd b/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/echoscript.cmd new file mode 100644 index 000000000..a996a370f --- /dev/null +++ b/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/echoscript.cmd @@ -0,0 +1,2 @@ +@echo off +echo %* \ No newline at end of file diff --git a/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/echoscript.sh b/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/echoscript.sh new file mode 100755 index 000000000..778a035de --- /dev/null +++ b/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/echoscript.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +echo $@ \ No newline at end of file diff --git a/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/project.json b/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/project.json new file mode 100644 index 000000000..aaad2e215 --- /dev/null +++ b/TestAssets/TestProjects/TestAppWithMigrateAbleScripts/project.json @@ -0,0 +1,29 @@ +{ + "version": "1.0.0-*", + "buildOptions": { + "emitEntryPoint": true + }, + "dependencies": { + "Microsoft.NETCore.App": { + "type": "platform", + "version": "1.0.0", + } + }, + "frameworks": { + "netcoreapp1.0": {} + }, + "scripts": { + "prepublish": [ + "echoscript prepublish_output ?%publish:ProjectPath%? ?%publish:Configuration%? ?%publish:OutputPath%? ?%publish:FullTargetFramework%?" + ], + "postpublish": [ + "echoscript postpublish_output ?%publish:ProjectPath%? ?%publish:Configuration%? ?%publish:OutputPath%? ?%publish:FullTargetFramework%?" + ], + "precompile": [ + "echoscript precompile_output ?%compile:Configuration%? ?%compile:OutputDir%? ?%compile:FullTargetFramework%?" + ], + "postcompile": [ + "echoscript postcompile_output ?%compile:Configuration%? ?%compile:OutputDir%? ?%compile:FullTargetFramework%?" + ] + } +} diff --git a/TestAssets/TestProjects/TestAppWithRuntimeOptions/Program.cs b/TestAssets/TestProjects/TestAppWithRuntimeOptions/Program.cs new file mode 100644 index 000000000..51233cffa --- /dev/null +++ b/TestAssets/TestProjects/TestAppWithRuntimeOptions/Program.cs @@ -0,0 +1,12 @@ +using System; + +namespace ConsoleApplication +{ + public class Program + { + public static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + } + } +} diff --git a/TestAssets/TestProjects/TestAppWithRuntimeOptions/project.json b/TestAssets/TestProjects/TestAppWithRuntimeOptions/project.json new file mode 100644 index 000000000..822e90d6a --- /dev/null +++ b/TestAssets/TestProjects/TestAppWithRuntimeOptions/project.json @@ -0,0 +1,26 @@ +{ + "version": "1.0.0-*", + "buildOptions": { + "emitEntryPoint": true + }, + "dependencies": { + "Microsoft.NETCore.App": { + "version": "1.0.0", + "type": "platform" + } + }, + "frameworks": { + "netcoreapp1.0": {} + }, + "runtimeOptions": { + "somethingString": "anything", + "somethingBoolean": true, + "someArray": [ + "one", + "two" + ], + "someObject": { + "someProperty": "someValue" + } + } +}