次の方法で共有


ICscHostObject2 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 ICscHostObject2 : Microsoft::Build::Framework::ITaskHost, Microsoft::Build::Tasks::Hosting::ICscHostObject
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("D6D4E228-259A-4076-B5D0-0627338BCC10")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ICscHostObject2 : Microsoft.Build.Framework.ITaskHost, Microsoft.Build.Tasks.Hosting.ICscHostObject
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("D6D4E228-259A-4076-B5D0-0627338BCC10")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ICscHostObject2 = interface
    interface ICscHostObject
    interface ITaskHost
Public Interface ICscHostObject2
Implements ICscHostObject, 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.

(Inherited from ICscHostObject)
Compile()

Compiles the project.

(Inherited from ICscHostObject)
EndInitialization(String, Int32)

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

(Inherited from ICscHostObject)
IsDesignTime()

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

(Inherited from ICscHostObject)
IsUpToDate()

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

(Inherited from ICscHostObject)
SetAdditionalLibPaths(String[])

Specifies additional directories to search for references.

(Inherited from ICscHostObject)
SetAddModules(String[])

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

(Inherited from ICscHostObject)
SetAllowUnsafeBlocks(Boolean)

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

(Inherited from ICscHostObject)
SetBaseAddress(String)

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

(Inherited from ICscHostObject)
SetCheckForOverflowUnderflow(Boolean)

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

(Inherited from ICscHostObject)
SetCodePage(Int32)

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

(Inherited from ICscHostObject)
SetDebugType(String)

Specifies the debug type.

(Inherited from ICscHostObject)
SetDefineConstants(String)

Specifies the preprocessor symbols to define.

(Inherited from ICscHostObject)
SetDelaySign(Boolean, Boolean)

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

(Inherited from ICscHostObject)
SetDisabledWarnings(String)

Specifies the list of warnings to disable.

(Inherited from ICscHostObject)
SetDocumentationFile(String)

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

(Inherited from ICscHostObject)
SetEmitDebugInformation(Boolean)

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

(Inherited from ICscHostObject)
SetErrorReport(String)

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

(Inherited from ICscHostObject)
SetFileAlignment(Int32)

Specifies the size of sections in the output file.

(Inherited from ICscHostObject)
SetGenerateFullPaths(Boolean)

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

(Inherited from ICscHostObject)
SetKeyContainer(String)

Specifies the name of the cryptographic key container.

(Inherited from ICscHostObject)
SetKeyFile(String)

Specifies the file name containing the cryptographic key.

(Inherited from ICscHostObject)
SetLangVersion(String)

Specifies the version of the language to use.

(Inherited from ICscHostObject)
SetLinkResources(ITaskItem[])

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

(Inherited from ICscHostObject)
SetMainEntryPoint(String, String)

Specifies the location of the Main method.

(Inherited from ICscHostObject)
SetModuleAssemblyName(String)

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

(Inherited from ICscHostObject)
SetNoConfig(Boolean)

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

(Inherited from ICscHostObject)
SetNoStandardLib(Boolean)

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

(Inherited from ICscHostObject)
SetOptimize(Boolean)

Specifies a value indicating whether to enable optimizations.

(Inherited from ICscHostObject)
SetOutputAssembly(String)

Specifies the name of the output file.

(Inherited from ICscHostObject)
SetPdbFile(String)

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

(Inherited from ICscHostObject)
SetPlatform(String)

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

(Inherited from ICscHostObject)
SetReferences(ITaskItem[])

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

(Inherited from ICscHostObject)
SetResources(ITaskItem[])

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

(Inherited from ICscHostObject)
SetResponseFiles(ITaskItem[])

Specifies the response files that contain commands for the compiler.

(Inherited from ICscHostObject)
SetSources(ITaskItem[])

Specifies one or more Visual C# source files.

(Inherited from ICscHostObject)
SetTargetType(String)

Specifies the file format of the output file.

(Inherited from ICscHostObject)
SetTreatWarningsAsErrors(Boolean)

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

(Inherited from ICscHostObject)
SetWarningLevel(Int32)

Specifies the warning level, from 0-4.

(Inherited from ICscHostObject)
SetWarningsAsErrors(String)

Specifies a list of warnings to treat as errors.

(Inherited from ICscHostObject)
SetWarningsNotAsErrors(String)

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

(Inherited from ICscHostObject)
SetWin32Icon(String)

Specifies an .ico file to insert into the assembly.

(Inherited from ICscHostObject)
SetWin32Manifest(String)

Specifies a manifest file to insert into the assembly.

SetWin32Resource(String)

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

(Inherited from ICscHostObject)

Applies to