/// <summary> /// Initializes a new instance of the <see cref="ContentLoader"/> class. /// </summary> public ContentLoader() { var assembly = Assembly.GetEntryAssembly(); //check if entry assembly was built with SOLUTION attribute var solutionMode = !(assembly.GetCustomAttribute <SolutionAttribute>() is null); contentManager = ContentManagerGL.Create(assembly, solutionMode); var contentDir = assembly.GetCustomAttribute <ContentSearchDirectoryAttribute>()?.ContentSearchDirectory; contentManager.SetContentSearchDirectory(contentDir); }