2017-03-02 21:04:03 -08:00
|
|
|
|
// 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;
|
2016-04-06 11:52:48 -07:00
|
|
|
|
using System.Reflection;
|
2016-03-28 02:32:31 -07:00
|
|
|
|
|
|
|
|
|
namespace ConsoleApplication
|
|
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
#if NET451
|
2016-03-28 04:18:59 -07:00
|
|
|
|
Console.WriteLine($"Hello {string.Join(" ", args)} From .NETFramework,Version=v4.5.1");
|
2016-04-12 17:29:07 -07:00
|
|
|
|
#elif NETCOREAPP1_0
|
|
|
|
|
Console.WriteLine($"Hello {string.Join(" ", args)} From .NETCoreApp,Version=v1.0");
|
2016-03-28 02:32:31 -07:00
|
|
|
|
#endif
|
2016-04-06 11:52:48 -07:00
|
|
|
|
var currentAssemblyPath = typeof(ConsoleApplication.Program).GetTypeInfo().Assembly.Location;
|
|
|
|
|
Console.WriteLine($"Current Assembly Directory - {currentAssemblyPath}");
|
2016-03-28 02:32:31 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|