A game framework written with osu! in mind.
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add logging if Dynamic Compilation is disbled due to no Solution file

+12 -8
+12 -8
osu.Framework/Testing/DynamicClassCompiler.cs
··· 45 45 46 46 public void Start() 47 47 { 48 - var di = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory); 49 - 50 48 if (Debugger.IsAttached) 51 49 { 52 50 referenceBuilder = new EmptyTypeReferenceBuilder(); ··· 55 53 return; 56 54 } 57 55 56 + var di = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory); 57 + var basePath = getSolutionPath(di); 58 + 59 + if (!Directory.Exists(basePath)) 60 + { 61 + referenceBuilder = new EmptyTypeReferenceBuilder(); 62 + 63 + Logger.Log("Dynamic compilation disabled (no solution file found)."); 64 + return; 65 + } 66 + 58 67 #if NET5_0 59 68 referenceBuilder = new RoslynTypeReferenceBuilder(); 60 69 #else ··· 65 74 { 66 75 Logger.Log("Initialising dynamic compilation..."); 67 76 68 - var basePath = getSolutionPath(di); 69 - 70 - if (!Directory.Exists(basePath)) 71 - return; 72 - 73 - await referenceBuilder.Initialise(Directory.GetFiles(getSolutionPath(di), "*.sln").First()).ConfigureAwait(false); 77 + await referenceBuilder.Initialise(Directory.GetFiles(basePath, "*.sln").First()).ConfigureAwait(false); 74 78 75 79 foreach (var dir in Directory.GetDirectories(basePath)) 76 80 {