using System; 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 NETSTANDARD1_5 Console.WriteLine($"Hello {string.Join(" ", args)} From .NETStandardApp,Version=v1.5"); #endif Console.WriteLine($"Base Directory - {AppContext.BaseDirectory}"); } } }