#if DEBUG CompilationFlags.UseDebugSymbols = true; #endif
#if RELEASE CompilationFlags.UseDebugSymbols = false; CompilationFlags.Optimize = true; #endifThis code will check if the RELEASE flag is set and disable debug symbols while enabling code optimization. Possible package library: Microsoft.NET.Sdk (for .NET Core) or Microsoft.CodeAnalysis.CSharp (for Roslyn) In summary, CompilationFlags is a useful enumeration in C# for controlling the compilation process of your code, and the package libraries that may contain it vary depending on the context in which it is used.