Csc Class

 

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

Implements the Csc task. Use the Csc element in your project file to create and execute this task. For usage and parameter information, see Csc Task.

Namespace:   Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.v4.0 (in Microsoft.Build.Tasks.v4.0.dll)


public class Csc : ManagedCompiler

NameDescription
System_CAPS_pubmethodCsc()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the Csc class.

NameDescription
System_CAPS_pubpropertyAdditionalLibPaths

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the additional folders in which to look for assemblies.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyAddModules

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the modules for the compiler to make available to the project you are currently compiling.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyAllowUnsafeBlocks

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a Boolean value that indicates whether to compile code that uses the unsafe keyword.

System_CAPS_pubpropertyApplicationConfiguration

This API supports the product infrastructure and is not intended to be used directly from your code. Returns configuration information.

System_CAPS_protpropertyBag

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the collection of parameters used by the derived task class.(Inherited from ToolTaskExtension.)

System_CAPS_pubpropertyBaseAddress

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the preferred base address at which to load a DLL.

System_CAPS_pubpropertyBuildEngine

Gets or sets the instance of the IBuildEngine object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine2

Gets the instance of the IBuildEngine2 object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine3

Gets the instance of the IBuildEngine3 object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine4

Gets the instance of the IBuildEngine4 object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyCheckForOverflowUnderflow

This API supports the product infrastructure and is not intended to be used directly from your code. 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.

System_CAPS_pubpropertyCodePage

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the code page to use for all source code files in the compilation.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyDebugType

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the debug type.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyDefineConstants

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the conditional compiler constants.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyDelaySign

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value indicating whether the public key is placed in the assembly.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyDisabledWarnings

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the list of warnings to be disabled.

System_CAPS_pubpropertyDocumentationFile

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the XML file to hold the documentation comments.

System_CAPS_pubpropertyEchoOff

Indicates that command line echoing is turned off.(Inherited from ToolTask.)

System_CAPS_pubpropertyEmitDebugInformation

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value indicating whether the compiler generates debugging information.(Inherited from ManagedCompiler.)

System_CAPS_protpropertyEnvironmentOverride

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.)

System_CAPS_pubpropertyEnvironmentVariables

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.)

System_CAPS_pubpropertyErrorEndLocation

This API supports the product infrastructure and is not intended to be used directly from your code. If true, outputs the line and column of the end location of each error.

System_CAPS_pubpropertyErrorReport

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the method to report a C# internal compiler error to Microsoft.

System_CAPS_pubpropertyExitCode

Gets the returned exit code of the executable file.(Inherited from ToolTask.)

System_CAPS_pubpropertyFileAlignment

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value indicating where to align the sections of the output file.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyGenerateFullPaths

This API supports the product infrastructure and is not intended to be used directly from your code. 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).

System_CAPS_protpropertyHasLoggedErrors

This API supports the product infrastructure and is not intended to be used directly from your code. Returns whether this ToolTask has logged any errors.(Inherited from ToolTaskExtension.)

System_CAPS_protpropertyHelpKeywordPrefix

Gets or sets the prefix used to compose Help keywords from resource names.(Inherited from Task.)

System_CAPS_pubpropertyHighEntropyVA

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the HighEntropyVA attribute.(Inherited from ManagedCompiler.)

System_CAPS_protpropertyHostCompilerSupportsAllParameters

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value indicating wheter the host compilter supports all task parameters.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyHostObject

Gets or sets the host object associated with the task.(Inherited from Task.)

System_CAPS_pubpropertyKeyContainer

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the name of the cryptographic key container.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyKeyFile

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the file name containing the cryptographic key.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyLangVersion

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the version of the language to use.

System_CAPS_pubpropertyLinkResources

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the .NET Framework resource files to link to the output file.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyLog

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an instance of a TaskLoggingHelperExtension class containing task logging methods.(Inherited from ToolTaskExtension.)

System_CAPS_pubpropertyLogStandardErrorAsError

Should ALL messages received on the standard error stream be logged as errors.(Inherited from ToolTask.)

System_CAPS_pubpropertyMainEntryPoint

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the class or module that contains the main entry point.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyModuleAssemblyName

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets an assembly whose non-public types a .netmodule can access.

System_CAPS_pubpropertyNoConfig

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value indicating whether the compiler should use the default response file.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyNoLogo

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value indicating whether to suppress the compiler banner information.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyNoStandardLib

This API supports the product infrastructure and is not intended to be used directly from your code. 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.

System_CAPS_pubpropertyNoWin32Manifest

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a Boolean value that specifies whether an external UAC manifest is generated for the application.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyOptimize

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value indicating whether to enable compiler optimizations.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyOutputAssembly

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the name of the output file.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyPdbFile

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the path of the .pdb file.

System_CAPS_pubpropertyPlatform

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the Platform attribute.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyPrefer32Bit

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the Prefer32Bit attribute.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyPreferredUILang

This API supports the product infrastructure and is not intended to be used directly from your code. The name of the language passed to the “/preferreduilang” compiler option.

System_CAPS_pubpropertyReferences

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the items from which the compiler will import public type information.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyResources

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the .NET Framework resources to embed in the output file.(Inherited from ManagedCompiler.)

System_CAPS_protpropertyResponseFileEncoding

Gets the Encoding of the response file.(Inherited from ToolTask.)

System_CAPS_pubpropertyResponseFiles

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the response files that contain commands for the task.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertySources

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the source files to compile.(Inherited from ManagedCompiler.)

System_CAPS_protpropertyStandardErrorEncoding

Gets the Encoding of the standard error stream of the task.(Inherited from ToolTask.)

System_CAPS_pubpropertyStandardErrorImportance

Task Parameter: Importance with which to log text from the standard error stream.(Inherited from ToolTask.)

System_CAPS_protpropertyStandardErrorImportanceToUse

Gets the actual importance at which standard error messages will be logged.(Inherited from ToolTask.)

System_CAPS_protpropertyStandardErrorLoggingImportance

Gets the MessageImportance with which to log errors.(Inherited from ToolTask.)

System_CAPS_protpropertyStandardOutputEncoding

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the encoding of the captured task standard output stream.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyStandardOutputImportance

Task Parameter: Importance with which to log text from the standard out stream.(Inherited from ToolTask.)

System_CAPS_protpropertyStandardOutputImportanceToUse

Gets the actual importance at which standard out messages will be logged.(Inherited from ToolTask.)

System_CAPS_protpropertyStandardOutputLoggingImportance

Gets the MessageImportance with which to log errors.(Inherited from ToolTask.)

System_CAPS_pubpropertySubsystemVersion

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the SubsystemVersion attribute value.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyTargetType

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the file format of the output file.(Inherited from ManagedCompiler.)

System_CAPS_protpropertyTaskProcessTerminationTimeout

A timeout to wait for a task to terminate before killing it. In milliseconds.(Inherited from ToolTask.)

System_CAPS_protpropertyTaskResources

Gets or sets the culture-specific resources associated with the task.(Inherited from Task.)

System_CAPS_pubpropertyTimeout

Gets or sets the amount of time after which the task executable is terminated.(Inherited from ToolTask.)

System_CAPS_protpropertyToolCanceled

Used to signal when a tool has been cancelled.(Inherited from ToolTask.)

System_CAPS_pubpropertyToolExe

Projects may set this to override a task's ToolName. Tasks may override this to prevent that.(Inherited from ToolTask.)

System_CAPS_protpropertyToolName

This API supports the product infrastructure and is not intended to be used directly from your code. Returns the name of the Csc tool (csc.exe).(Overrides ToolTask.ToolName.)

System_CAPS_pubpropertyToolPath

Gets or sets the path of the executable file to run.(Inherited from ToolTask.)

System_CAPS_pubpropertyTreatWarningsAsErrors

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value indicating whether warnings are treated as errors.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyUseCommandProcessor

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.)

System_CAPS_protpropertyUsedCommandLineTool

This API supports the product infrastructure and is not intended to be used directly from your code. Whether the command line compiler was invoked, instead of the host object compiler.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyUseHostCompilerIfAvailable

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a Boolean value that indicates whether the Csc task should use the in-process compiler object, if available.

System_CAPS_pubpropertyUtf8Output

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value indicating whether compiler output is logged using UTF-8 encoding.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyWarningLevel

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the warning level for the compiler to display.

System_CAPS_pubpropertyWarningsAsErrors

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a list of warnings to treat as errors.

System_CAPS_pubpropertyWarningsNotAsErrors

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a list of warnings that are not treated as errors.

System_CAPS_pubpropertyWin32Icon

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the icon file name.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyWin32Manifest

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the Win32 manifest.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyWin32Resource

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a Win32 resource (.res) file to insert in the output file.(Inherited from ManagedCompiler.)

System_CAPS_pubpropertyYieldDuringToolExecution

Indicates if the task will yield the node during tool execution.(Inherited from ToolTask.)

NameDescription
System_CAPS_protmethodAddCommandLineCommands(CommandLineBuilderExtension)

This API supports the product infrastructure and is not intended to be used directly from your code. Generates command line arguments that the command line tool must run directly from the command line and not from a response file.(Inherited from ManagedCompiler.)

System_CAPS_protmethodAddResponseFileCommands(CommandLineBuilderExtension)

This API supports the product infrastructure and is not intended to be used directly from your code. Fills the specified commandLine parameter with switches and other information that can go into a response file.(Overrides ManagedCompiler.AddResponseFileCommands(CommandLineBuilderExtension).)

System_CAPS_protmethodCallHostObjectToExecute()

This API supports the product infrastructure and is not intended to be used directly from your code. Compiles the project through the host object.(Overrides ToolTask.CallHostObjectToExecute().)

System_CAPS_pubmethodCancel()

Cancels the process executing the task by asking it to close nicely, then after a short period, forcing termination.(Inherited from ToolTask.)

System_CAPS_protmethodCheckAllReferencesExistOnDisk()

This API supports the product infrastructure and is not intended to be used directly from your code. Verifies that all specified references exist on disk.(Inherited from ManagedCompiler.)

System_CAPS_protmethodCheckHostObjectSupport(String, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Logs a message if the specified parameter is not supported by the host compiler.(Inherited from ManagedCompiler.)

System_CAPS_protmethodDeleteTempFile(String)

Deletes the specified temporary file.(Inherited from ToolTask.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodExecute()

Runs the exectuable file with the specified task parameters.(Inherited from ToolTask.)

System_CAPS_protmethodExecuteTool(String, String, String)

Creates a temporoary response (.rsp) file and runs the executable file.(Inherited from ToolTask.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_protmethodGenerateCommandLineCommands()

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the switches and other information that the command line tool must run directly from the command line and not from a response file.(Inherited from ToolTaskExtension.)

System_CAPS_protmethodGenerateFullPathToTool()

This API supports the product infrastructure and is not intended to be used directly from your code. Returns the full file path of the Csc tool.(Overrides ToolTask.GenerateFullPathToTool().)

System_CAPS_protmethodGenerateResponseFileCommands()

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the switch used by the command line tool to specify the response file.(Inherited from ToolTaskExtension.)

System_CAPS_protmethodGetBoolParameterWithDefault(String, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the value of the specified Boolean parameter.(Inherited from ToolTaskExtension.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetIntParameterWithDefault(String, Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the value of the specified integer parameter.(Inherited from ToolTaskExtension.)

System_CAPS_protmethodGetProcessStartInfo(String, String, String)

Initializes the information required to spawn the process executing the tool.(Inherited from ToolTask.)

System_CAPS_protmethodGetResponseFileSwitch(String)

Returns the command line switch used by the executable file to specifiy a response (.rsp) file.(Inherited from ToolTask.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodGetWorkingDirectory()

Returns the directory in which to run the executable file.(Inherited from ToolTask.)

System_CAPS_protmethodHandleTaskExecutionErrors()

This API supports the product infrastructure and is not intended to be used directly from your code. Handles the return code from the compiler.(Inherited from ManagedCompiler.)

System_CAPS_protmethodInitializeHostObject()

This API supports the product infrastructure and is not intended to be used directly from your code. Returns a host object initialization status value that indicates what the next action should be.(Overrides ToolTask.InitializeHostObject().)

System_CAPS_protmethodListHasNoDuplicateItems(ITaskItem[], String)

This API supports the product infrastructure and is not intended to be used directly from your code. Determines if any duplicate items exist in the specified task parameter.(Inherited from ManagedCompiler.)

System_CAPS_protmethodLogEventsFromTextOutput(String, MessageImportance)

Parses a single line of text to identify any errors or warnings in canonical format.(Inherited from ToolTask.)

System_CAPS_protmethodLogPathToTool(String, String)

Logs the tool name and path to all registered loggers.(Inherited from ToolTask.)

System_CAPS_protmethodLogToolCommand(String)

Logs the starting point of the run to all registered loggers.(Inherited from ToolTask.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodResponseFileEscape(String)

Overridable method to escape the content of the response file.(Inherited from ToolTask.)

System_CAPS_protmethodSkipTaskExecution()

Indicates whether task execution should be skipped.(Inherited from ToolTask.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodUseAlternateCommandLineToolToExecute()

This API supports the product infrastructure and is not intended to be used directly from your code. If an alternate tool name or tool path was specified in the project file, then that tool is used rather than the host compiler for integrated development environment (IDE) builds.(Inherited from ManagedCompiler.)

System_CAPS_protmethodValidateParameters()

This API supports the product infrastructure and is not intended to be used directly from your code. Validates the task parameters.(Inherited from ManagedCompiler.)

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: