Export (0) Print
Expand All

ICscHostObject4 Interface

.NET Framework 4.5

Represents the Csc host compiler.

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

[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[ComVisibleAttribute(true)]
[GuidAttribute("0DDB496F-C93C-492C-87F1-90B6FDBAA833")]
public interface ICscHostObject4 : ICscHostObject3, 
	ICscHostObject2, ICscHostObject, ITaskHost

The ICscHostObject4 type exposes the following members.

  NameDescription
Public methodBeginInitializationBegins the initialization of the ICscHostObject. (Inherited from ICscHostObject.)
Public methodCompileCompiles the project. (Inherited from ICscHostObject.)
Public methodEndInitializationEnds the initialization of the ICscHostObject with the specified error message and code. (Inherited from ICscHostObject.)
Public methodIsDesignTimeReturns a value indicating whether the integrated development environment (IDE) is currently in design time mode. (Inherited from ICscHostObject.)
Public methodIsUpToDateReturns a value indicating whether the compiled project is up-to-date. (Inherited from ICscHostObject.)
Public methodSetAdditionalLibPathsSpecifies additional directories to search for references. (Inherited from ICscHostObject.)
Public methodSetAddModulesSpecifies one or more modules to be part of the assembly. (Inherited from ICscHostObject.)
Public methodSetAllowUnsafeBlocksSpecifies a value indicating whether to allow code that uses the unsafe keyword to compile. (Inherited from ICscHostObject.)
Public methodSetApplicationConfigurationSet the application configuration. (Inherited from ICscHostObject3.)
Public methodSetBaseAddressSpecifies the preferred base address at which to load a DLL. (Inherited from ICscHostObject.)
Public methodSetCheckForOverflowUnderflowSpecifies a value indicating whether integer arithmetic that overflows the bounds of the data type causes an exception at run time. (Inherited from ICscHostObject.)
Public methodSetCodePageSpecifies the code page to use for all source code files in the compilation. (Inherited from ICscHostObject.)
Public methodSetDebugTypeSpecifies the debug type. (Inherited from ICscHostObject.)
Public methodSetDefineConstantsSpecifies the preprocessor symbols to define. (Inherited from ICscHostObject.)
Public methodSetDelaySignSpecifies a value indicating whether to create a fully signed assembly. (Inherited from ICscHostObject.)
Public methodSetDisabledWarningsSpecifies the list of warnings to disable. (Inherited from ICscHostObject.)
Public methodSetDocumentationFileSpecifies the XML file in which to save processed documentation comments. (Inherited from ICscHostObject.)
Public methodSetEmitDebugInformationSpecifies a value indicating whether to generate debugging information and place it in a program database (.pdb) file. (Inherited from ICscHostObject.)
Public methodSetErrorReportSpecifies a value that indicates how internal compiler errors are reported to Microsoft. (Inherited from ICscHostObject.)
Public methodSetFileAlignmentSpecifies the size of sections in the output file. (Inherited from ICscHostObject.)
Public methodSetGenerateFullPathsSpecifies a value indicating whether to specify the absolute path to the file in the compiler output. (Inherited from ICscHostObject.)
Public methodSetHighEntropyVASets the /highentropyva value as specified.
Public methodSetKeyContainerSpecifies the name of the cryptographic key container. (Inherited from ICscHostObject.)
Public methodSetKeyFileSpecifies the file name containing the cryptographic key. (Inherited from ICscHostObject.)
Public methodSetLangVersionSpecifies the version of the language to use. (Inherited from ICscHostObject.)
Public methodSetLinkResourcesCreates links to the specified .NET Framework resources in the output file; the resource files are not placed in the output file. (Inherited from ICscHostObject.)
Public methodSetMainEntryPointSpecifies the location of the Main method. (Inherited from ICscHostObject.)
Public methodSetModuleAssemblyNameSpecifies an assembly whose non-public types a .netmodule can access. (Inherited from ICscHostObject.)
Public methodSetNoConfigSpecifies a value indicating whether to prevent the compiler from compiling with the csc.rsp file. (Inherited from ICscHostObject.)
Public methodSetNoStandardLibSpecifies a value indicating whether to prevent the import of mscorlib.dll. (Inherited from ICscHostObject.)
Public methodSetOptimizeSpecifies a value indicating whether to enable optimizations. (Inherited from ICscHostObject.)
Public methodSetOutputAssemblySpecifies the name of the output file. (Inherited from ICscHostObject.)
Public methodSetPdbFileSpecifies the program database (.pdb) file in which to place generated debugging information. (Inherited from ICscHostObject.)
Public methodSetPlatformSpecifies the processor platform to be targeted by the output file. (Inherited from ICscHostObject.)
Public methodSetPlatformWith32BitPreferenceSets the /platform value to AnyCPU32BitPreferred.
Public methodSetReferencesSpecifies the items from which to import public type information into the current project. (Inherited from ICscHostObject.)
Public methodSetResourcesSpecifies the .NET Framework resources to embed into the output file. (Inherited from ICscHostObject.)
Public methodSetResponseFilesSpecifies the response files that contain commands for the compiler. (Inherited from ICscHostObject.)
Public methodSetSourcesSpecifies one or more Visual C# source files. (Inherited from ICscHostObject.)
Public methodSetSubsystemVersionSets the subsystem version flag as specified.
Public methodSetTargetTypeSpecifies the file format of the output file. (Inherited from ICscHostObject.)
Public methodSetTreatWarningsAsErrorsSpecifies a value indicating whether to treat all warnings as errors. (Inherited from ICscHostObject.)
Public methodSetWarningLevelSpecifies the warning level, from 0-4. (Inherited from ICscHostObject.)
Public methodSetWarningsAsErrorsSpecifies a list of warnings to treat as errors. (Inherited from ICscHostObject.)
Public methodSetWarningsNotAsErrorsSpecifies a list of warnings that are not treated as errors. (Inherited from ICscHostObject.)
Public methodSetWin32IconSpecifies an .ico file to insert into the assembly. (Inherited from ICscHostObject.)
Public methodSetWin32ManifestSpecifies a manifest file to insert into the assembly. (Inherited from ICscHostObject2.)
Public methodSetWin32ResourceSpecifies a Win32 resource (.res) file to insert into the output file. (Inherited from ICscHostObject.)
Top

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.

.NET Framework

Supported in: 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft