static void InitializePaths()
{
if( _solutionFolder != null ) return;
#if NET451
string p = new Uri( System.Reflection.Assembly.GetExecutingAssembly().CodeBase ).LocalPath;
#else
string p = Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default.Application.ApplicationBasePath;
#endif
do
{
p = Path.GetDirectoryName( p );
}
while( !File.Exists( Path.Combine( p, "CK-Core.sln" ) ) );
_solutionFolder = p;
_testFolder = Path.Combine( _solutionFolder, "Tests", "CK.ActivityMonitor.Tests", "TestFolder" );
CleanupTestFolder();
}