Csc Properties

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

The Csc type exposes the following members.

  Name Description
Public property AdditionalLibPaths Infrastructure. Gets or sets the additional folders in which to look for assemblies. (Inherited from ManagedCompiler.)
Public property AddModules Infrastructure. Gets or sets the modules for the compiler to make available to the project you are currently compiling. (Inherited from ManagedCompiler.)
Public property AllowUnsafeBlocks Infrastructure. Gets or sets a Boolean value that indicates whether to compile code that uses the unsafe keyword.
Public property ApplicationConfiguration Returns configuration information.
Protected property Bag Infrastructure. Gets the collection of parameters used by the derived task class. (Inherited from ToolTaskExtension.)
Public property BaseAddress Infrastructure. Gets or sets the preferred base address at which to load a DLL.
Public property BuildEngine Gets or sets the instance of the IBuildEngine object used by the task. (Inherited from Task.)
Public property BuildEngine2 Gets the instance of the IBuildEngine2 object used by the task. (Inherited from Task.)
Public property BuildEngine3 Gets the instance of the IBuildEngine3 object used by the task. (Inherited from Task.)
Public property BuildEngine4 Gets the instance of the IBuildEngine4 object used by the task. (Inherited from Task.)
Public property CheckForOverflowUnderflow Infrastructure. Gets or sets a Boolean value that indicates whether the Csc task should cause an exception at run time for integer arithmetic that overflows the bounds of the data type.
Public property CodePage Infrastructure. Gets or sets the code page to use for all source code files in the compilation. (Inherited from ManagedCompiler.)
Public property DebugType Infrastructure. Gets or sets the debug type. (Inherited from ManagedCompiler.)
Public property DefineConstants Infrastructure. Gets or sets the conditional compiler constants. (Inherited from ManagedCompiler.)
Public property DelaySign Infrastructure. Gets or sets a value indicating whether the public key is placed in the assembly. (Inherited from ManagedCompiler.)
Public property DisabledWarnings Infrastructure. Gets or sets the list of warnings to be disabled.
Public property DocumentationFile Infrastructure. Gets or sets the XML file to hold the documentation comments.
Public property EchoOff Indicates that command line echoing is turned off. (Inherited from ToolTask.)
Public property EmitDebugInformation Infrastructure. Gets or sets a value indicating whether the compiler generates debugging information. (Inherited from ManagedCompiler.)
Protected property EnvironmentOverride Obsolete. Gets a set of environment variable name-value pairs. Designed to be overridden in a custom task class (derived from ToolTask) to return a set of new or altered environment variables to create the execution context of the associated tool. (Inherited from ToolTask.)
Public property EnvironmentVariables Array of equals-separated pairs of environment variables that should be passed to the spawned executable, in addition to (or selectively overriding) the regular environment block. (Inherited from ToolTask.)
Public property ErrorEndLocation If true, outputs the line and column of the end location of each error.
Public property ErrorReport Infrastructure. Gets or sets the method to report a C# internal compiler error to Microsoft.
Public property ExitCode Gets the returned exit code of the executable file. (Inherited from ToolTask.)
Public property FileAlignment Infrastructure. Gets or sets a value indicating where to align the sections of the output file. (Inherited from ManagedCompiler.)
Public property GenerateFullPaths Infrastructure. Gets or sets a Boolean value that indicates whether to generate the absolute path to the file in the compiler output (true) or to generate the name of the file in the compiler output (false).
Protected property HasLoggedErrors Infrastructure. Returns whether this ToolTask has logged any errors. (Inherited from ToolTaskExtension.)
Protected property HelpKeywordPrefix Gets or sets the prefix used to compose Help keywords from resource names. (Inherited from Task.)
Public property HighEntropyVA Gets or sets the HighEntropyVA attribute. (Inherited from ManagedCompiler.)
Protected property HostCompilerSupportsAllParameters Infrastructure. Gets or sets a value indicating wheter the host compilter supports all task parameters. (Inherited from ManagedCompiler.)
Public property HostObject Gets or sets the host object associated with the task. (Inherited from Task.)
Public property KeyContainer Infrastructure. Gets or sets the name of the cryptographic key container. (Inherited from ManagedCompiler.)
Public property KeyFile Infrastructure. Gets or sets the file name containing the cryptographic key. (Inherited from ManagedCompiler.)
Public property LangVersion Infrastructure. Gets or sets the version of the language to use.
Public property LinkResources Infrastructure. Gets or sets the .NET Framework resource files to link to the output file. (Inherited from ManagedCompiler.)
Public property Log Gets an instance of a TaskLoggingHelperExtension class containing task logging methods. (Inherited from ToolTaskExtension.)
Public property LogStandardErrorAsError Should ALL messages received on the standard error stream be logged as errors. (Inherited from ToolTask.)
Public property MainEntryPoint Infrastructure. Gets or sets the class or module that contains the main entry point. (Inherited from ManagedCompiler.)
Public property ModuleAssemblyName Infrastructure. Gets or sets an assembly whose non-public types a .netmodule can access.
Public property NoConfig Infrastructure. Gets or sets a value indicating whether the compiler should use the default response file. (Inherited from ManagedCompiler.)
Public property NoLogo Infrastructure. Gets or sets a value indicating whether to suppress the compiler banner information. (Inherited from ManagedCompiler.)
Public property NoStandardLib Infrastructure. Gets or sets a Boolean value that indicates whether the Csc task should prevent the import of mscorlib.dll, which defines the entire System namespace.
Public property NoWin32Manifest Infrastructure. Gets or sets a Boolean value that specifies whether an external UAC manifest is generated for the application. (Inherited from ManagedCompiler.)
Public property Optimize Infrastructure. Gets or sets a value indicating whether to enable compiler optimizations. (Inherited from ManagedCompiler.)
Public property OutputAssembly Infrastructure. Gets or sets the name of the output file. (Inherited from ManagedCompiler.)
Public property PdbFile Infrastructure. Gets or sets the path of the .pdb file.
Public property Platform Gets or sets the Platform attribute. (Inherited from ManagedCompiler.)
Public property Prefer32Bit Gets or sets the Prefer32Bit attribute. (Inherited from ManagedCompiler.)
Public property PreferredUILang The name of the language passed to the “/preferreduilang” compiler option.
Public property References Infrastructure. Gets or sets the items from which the compiler will import public type information. (Inherited from ManagedCompiler.)
Public property Resources Infrastructure. Gets or sets the .NET Framework resources to embed in the output file. (Inherited from ManagedCompiler.)
Protected property ResponseFileEncoding Gets the Encoding of the response file. (Inherited from ToolTask.)
Public property ResponseFiles Infrastructure. Gets or sets the response files that contain commands for the task. (Inherited from ManagedCompiler.)
Public property Sources Infrastructure. Gets or sets the source files to compile. (Inherited from ManagedCompiler.)
Protected property StandardErrorEncoding Gets the Encoding of the standard error stream of the task. (Inherited from ToolTask.)
Public property StandardErrorImportance Task Parameter: Importance with which to log text from the standard error stream. (Inherited from ToolTask.)
Protected property StandardErrorImportanceToUse Gets the actual importance at which standard error messages will be logged. (Inherited from ToolTask.)
Protected property StandardErrorLoggingImportance Gets the MessageImportance with which to log errors. (Inherited from ToolTask.)
Protected property StandardOutputEncoding Infrastructure. Gets or sets the encoding of the captured task standard output stream. (Inherited from ManagedCompiler.)
Public property StandardOutputImportance Task Parameter: Importance with which to log text from the standard out stream. (Inherited from ToolTask.)
Protected property StandardOutputImportanceToUse Gets the actual importance at which standard out messages will be logged. (Inherited from ToolTask.)
Protected property StandardOutputLoggingImportance Gets the MessageImportance with which to log errors. (Inherited from ToolTask.)
Public property SubsystemVersion Gets or sets the SubsystemVersion attribute value. (Inherited from ManagedCompiler.)
Public property TargetType Infrastructure. Gets or sets the file format of the output file. (Inherited from ManagedCompiler.)
Protected property TaskProcessTerminationTimeout A timeout to wait for a task to terminate before killing it. In milliseconds. (Inherited from ToolTask.)
Protected property TaskResources Gets or sets the culture-specific resources associated with the task. (Inherited from Task.)
Public property Timeout Gets or sets the amount of time after which the task executable is terminated. (Inherited from ToolTask.)
Protected property ToolCanceled Used to signal when a tool has been cancelled. (Inherited from ToolTask.)
Public property ToolExe Projects may set this to override a task's ToolName. Tasks may override this to prevent that. (Inherited from ToolTask.)
Protected property ToolName Infrastructure. Returns the name of the Csc tool (csc.exe). (Overrides ToolTask.ToolName.)
Public property ToolPath Gets or sets the path of the executable file to run. (Inherited from ToolTask.)
Public property TreatWarningsAsErrors Infrastructure. Gets or sets a value indicating whether warnings are treated as errors. (Inherited from ManagedCompiler.)
Public property UseCommandProcessor Gets or sets a switch that specifies whether the tool task will create a batch file for the command-line and execute that using the command-processor, rather than executing the command directly. (Inherited from ToolTask.)
Protected property UsedCommandLineTool Whether the command line compiler was invoked, instead of the host object compiler. (Inherited from ManagedCompiler.)
Public property UseHostCompilerIfAvailable Infrastructure. Gets or sets a Boolean value that indicates whether the Csc task should use the in-process compiler object, if available.
Public property Utf8Output Infrastructure. Gets or sets a value indicating whether compiler output is logged using UTF-8 encoding. (Inherited from ManagedCompiler.)
Public property WarningLevel Infrastructure. Gets or sets the warning level for the compiler to display.
Public property WarningsAsErrors Infrastructure. Gets or sets a list of warnings to treat as errors.
Public property WarningsNotAsErrors Infrastructure. Gets or sets a list of warnings that are not treated as errors.
Public property Win32Icon Infrastructure. Gets or sets the icon file name. (Inherited from ManagedCompiler.)
Public property Win32Manifest Infrastructure. Gets or sets the Win32 manifest. (Inherited from ManagedCompiler.)
Public property Win32Resource Infrastructure. Gets or sets a Win32 resource (.res) file to insert in the output file. (Inherited from ManagedCompiler.)
Public property YieldDuringToolExecution Indicates if the task will yield the node during tool execution. (Inherited from ToolTask.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft