Add tests to check the dependency tool load location.
This commit is contained in:
parent
1db2c08fb5
commit
71680d30aa
2 changed files with 7 additions and 4 deletions
|
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue