Aracılığıyla paylaş


ICscHostObject Interface

Definition

Defines an interface for the Csc task to communicate with the IDE. In particular, the Csc task will delegate the actual compilation to the IDE, rather than shelling out to the command-line compilers.

public interface class ICscHostObject : Microsoft::Build::Framework::ITaskHost
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("8520CC4D-64DC-4855-BE3F-4C28CCE048EE")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ICscHostObject : Microsoft.Build.Framework.ITaskHost
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("8520CC4D-64DC-4855-BE3F-4C28CCE048EE")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ICscHostObject = interface
    interface ITaskHost
Public Interface ICscHostObject
Implements ITaskHost
Derived
Attributes
Implements

Remarks

This interface allows the Csc task to delegate project compilation to the IDE rather than using command line compilers.

Methods

BeginInitialization()

Begins the initialization of the ICscHostObject.

Compile()

Compiles the project.

EndInitialization(String, Int32)

Ends the initialization of the ICscHostObject with the specified error message and code.

IsDesignTime()

Returns a value indicating whether the integrated development environment (IDE) is currently in design time mode.

IsUpToDate()

Returns a value indicating whether the compiled project is up-to-date.

SetAdditionalLibPaths(String[])

Specifies additional directories to search for references.

SetAddModules(String[])

Specifies one or more modules to be part of the assembly.

SetAllowUnsafeBlocks(Boolean)

Specifies a value indicating whether to allow code that uses the unsafe keyword to compile.

SetBaseAddress(String)

Specifies the preferred base address at which to load a DLL.

SetCheckForOverflowUnderflow(Boolean)

Specifies a value indicating whether integer arithmetic that overflows the bounds of the data type causes an exception at run time.

SetCodePage(Int32)

Specifies the code page to use for all source code files in the compilation.

SetDebugType(String)

Specifies the debug type.

SetDefineConstants(String)

Specifies the preprocessor symbols to define.

SetDelaySign(Boolean, Boolean)

Specifies a value indicating whether to create a fully signed assembly.

SetDisabledWarnings(String)

Specifies the list of warnings to disable.

SetDocumentationFile(String)

Specifies the XML file in which to save processed documentation comments.

SetEmitDebugInformation(Boolean)

Specifies a value indicating whether to generate debugging information and place it in a program database (.pdb) file.

SetErrorReport(String)

Specifies a value that indicates how internal compiler errors are reported to Microsoft.

SetFileAlignment(Int32)

Specifies the size of sections in the output file.

SetGenerateFullPaths(Boolean)

Specifies a value indicating whether to specify the absolute path to the file in the compiler output.

SetKeyContainer(String)

Specifies the name of the cryptographic key container.

SetKeyFile(String)

Specifies the file name containing the cryptographic key.

SetLangVersion(String)

Specifies the version of the language to use.

SetLinkResources(ITaskItem[])

Creates links to the specified .NET Framework resources in the output file; the resource files are not placed in the output file.

SetMainEntryPoint(String, String)

Specifies the location of the Main method.

SetModuleAssemblyName(String)

Specifies an assembly whose non-public types a .netmodule can access.

SetNoConfig(Boolean)

Specifies a value indicating whether to prevent the compiler from compiling with the csc.rsp file.

SetNoStandardLib(Boolean)

Specifies a value indicating whether to prevent the import of mscorlib.dll.

SetOptimize(Boolean)

Specifies a value indicating whether to enable optimizations.

SetOutputAssembly(String)

Specifies the name of the output file.

SetPdbFile(String)

Specifies the program database (.pdb) file in which to place generated debugging information.

SetPlatform(String)

Specifies the processor platform to be targeted by the output file.

SetReferences(ITaskItem[])

Specifies the items from which to import public type information into the current project.

SetResources(ITaskItem[])

Specifies the .NET Framework resources to embed into the output file.

SetResponseFiles(ITaskItem[])

Specifies the response files that contain commands for the compiler.

SetSources(ITaskItem[])

Specifies one or more Visual C# source files.

SetTargetType(String)

Specifies the file format of the output file.

SetTreatWarningsAsErrors(Boolean)

Specifies a value indicating whether to treat all warnings as errors.

SetWarningLevel(Int32)

Specifies the warning level, from 0-4.

SetWarningsAsErrors(String)

Specifies a list of warnings to treat as errors.

SetWarningsNotAsErrors(String)

Specifies a list of warnings that are not treated as errors.

SetWin32Icon(String)

Specifies an .ico file to insert into the assembly.

SetWin32Resource(String)

Specifies a Win32 resource (.res) file to insert into the output file.

Applies to