CSharpCompilerOptions options = new CSharpCompilerOptions(); options.TargatFrameworkVersion = "netcoreapp3.1";
CSharpCompilerOptions options = new CSharpCompilerOptions(); options.SuppressWarnings = true; options.WarningLevel = 0;This code creates a new instance of the CSharpCompilerOptions class and sets its SuppressWarnings property to true and WarningLevel property to 0. This will suppress all warning messages during compilation. Package/Library: This class is part of the Microsoft.CodeAnalysis.CSharp.Scripting package.