共用方式為


ICscHostObject4 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 ICscHostObject4 : Microsoft::Build::Framework::ITaskHost, Microsoft::Build::Tasks::Hosting::ICscHostObject3
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("0DDB496F-C93C-492C-87F1-90B6FDBAA833")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ICscHostObject4 : Microsoft.Build.Framework.ITaskHost, Microsoft.Build.Tasks.Hosting.ICscHostObject3
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("0DDB496F-C93C-492C-87F1-90B6FDBAA833")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ICscHostObject4 = interface
    interface ICscHostObject3
    interface ICscHostObject2
    interface ICscHostObject
    interface ITaskHost
Public Interface ICscHostObject4
Implements ICscHostObject3, ITaskHost
Attributes
Implements

Remarks

Defines an interface for the Csc task to communicate with the Visual Studio IDE. In particular, the Csc task delegates the actual compilation to the IDE rather than shelling out to the 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)
SetApplicationConfiguration(String)

Sets the application configuration.

(Inherited from ICscHostObject3)
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)
SetHighEntropyVA(Boolean)

Sets the /highentropyva value as specified.

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)
SetPlatformWith32BitPreference(String)

Sets the /platform value to AnyCPU32BitPreferred.

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)
SetSubsystemVersion(String)

Sets the subsystem version flag as specified.

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.

(Inherited from ICscHostObject2)
SetWin32Resource(String)

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

(Inherited from ICscHostObject)

Applies to