Add tests to check the dependency tool load location.

This commit is contained in:
Sridhar Periyasamy 2016-04-06 11:52:48 -07:00
parent 1db2c08fb5
commit 71680d30aa
2 changed files with 7 additions and 4 deletions

View file

@ -1,4 +1,5 @@
using System;
using System.Reflection;
namespace ConsoleApplication
{
@ -11,7 +12,8 @@ namespace ConsoleApplication
#elif NETSTANDARD1_5
Console.WriteLine($"Hello {string.Join(" ", args)} From .NETStandardApp,Version=v1.5");
#endif
Console.WriteLine($"Base Directory - {AppContext.BaseDirectory}");
var currentAssemblyPath = typeof(ConsoleApplication.Program).GetTypeInfo().Assembly.Location;
Console.WriteLine($"Current Assembly Directory - {currentAssemblyPath}");
}
}
}