Add tests for behavior of tools that target previous major version of shared framework

This commit is contained in:
Daniel Plaisted 2017-04-25 10:03:45 -07:00
parent 8615c30063
commit 01d3895b24
7 changed files with 162 additions and 2 deletions

View file

@ -2,6 +2,8 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
using System.Reflection;
namespace ConsoleApplication
{
@ -10,6 +12,12 @@ namespace ConsoleApplication
public static void Main(string[] args)
{
Console.WriteLine("Hello Portable World!");
var coreAssembly = typeof(object).GetTypeInfo().Assembly;
string coreFolder = Path.GetDirectoryName(coreAssembly.Location);
string frameworkVersion = Path.GetFileName(coreFolder);
Console.WriteLine($"I'm running on shared framework version {frameworkVersion}!");
}
}
}