2017-03-03 05:04:03 +00: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;
|
2017-04-25 17:03:45 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Reflection;
|
2016-03-17 18:43:01 +00:00
|
|
|
|
|
|
|
|
|
namespace ConsoleApplication
|
|
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Hello Portable World!");
|
2017-04-25 17:03:45 +00:00
|
|
|
|
|
2018-11-29 04:39:37 +00:00
|
|
|
|
var depsFile = new FileInfo(AppContext.GetData("FX_DEPS_FILE") as string);
|
2017-04-26 21:57:18 +00:00
|
|
|
|
string frameworkVersion = depsFile.Directory.Name;
|
2017-04-25 17:03:45 +00:00
|
|
|
|
|
|
|
|
|
Console.WriteLine($"I'm running on shared framework version {frameworkVersion}!");
|
2016-03-17 18:43:01 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|