dotnet-installer/TestAssets/TestPackages/dotnet-desktop-and-portable/Program.cs

20 lines
606 B
C#
Raw Normal View History

2016-03-28 09:32:31 +00:00
using System;
using System.Reflection;
2016-03-28 09:32:31 +00:00
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
#if NET451
Console.WriteLine($"Hello {string.Join(" ", args)} From .NETFramework,Version=v4.5.1");
#elif NETCOREAPP1_0
Console.WriteLine($"Hello {string.Join(" ", args)} From .NETCoreApp,Version=v1.0");
2016-03-28 09:32:31 +00:00
#endif
var currentAssemblyPath = typeof(ConsoleApplication.Program).GetTypeInfo().Assembly.Location;
Console.WriteLine($"Current Assembly Directory - {currentAssemblyPath}");
2016-03-28 09:32:31 +00:00
}
}
}