Add tests for behavior of tools that target previous major version of shared framework
This commit is contained in:
parent
8615c30063
commit
01d3895b24
7 changed files with 162 additions and 2 deletions
|
@ -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}!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue