Freigeben über


ICscHostObject4 Interface

Represents the Csc host compiler.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

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

Syntax

'Declaration
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<ComVisibleAttribute(True)> _
<GuidAttribute("0DDB496F-C93C-492C-87F1-90B6FDBAA833")> _
Public Interface ICscHostObject4 _
    Inherits ICscHostObject3, ICscHostObject2, ICscHostObject, ITaskHost
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[ComVisibleAttribute(true)]
[GuidAttribute("0DDB496F-C93C-492C-87F1-90B6FDBAA833")]
public interface ICscHostObject4 : ICscHostObject3, 
    ICscHostObject2, ICscHostObject, ITaskHost
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[ComVisibleAttribute(true)]
[GuidAttribute(L"0DDB496F-C93C-492C-87F1-90B6FDBAA833")]
public interface class ICscHostObject4 : ICscHostObject3, 
    ICscHostObject2, ICscHostObject, ITaskHost
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
[<ComVisibleAttribute(true)>]
[<GuidAttribute("0DDB496F-C93C-492C-87F1-90B6FDBAA833")>]
type ICscHostObject4 =  
    interface 
        interface ICscHostObject3 
        interface ICscHostObject2 
        interface ICscHostObject 
        interface ITaskHost 
    end
public interface ICscHostObject4 extends ICscHostObject3, ICscHostObject2, ICscHostObject, ITaskHost

The ICscHostObject4 type exposes the following members.

Methods

  Name Description
Public method BeginInitialization Begins the initialization of the ICscHostObject.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method Compile Compiles the project.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method EndInitialization Ends the initialization of the ICscHostObject with the specified error message and code.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method IsDesignTime Returns a value indicating whether the integrated development environment (IDE) is currently in design time mode.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method IsUpToDate Returns a value indicating whether the compiled project is up-to-date.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetAdditionalLibPaths Specifies additional directories to search for references.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetAddModules Specifies one or more modules to be part of the assembly.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetAllowUnsafeBlocks Specifies a value indicating whether to allow code that uses the unsafe keyword to compile.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetApplicationConfiguration Set the application configuration.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject3.)
Public method SetBaseAddress Specifies the preferred base address at which to load a DLL.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetCheckForOverflowUnderflow Specifies a value indicating whether integer arithmetic that overflows the bounds of the data type causes an exception at run time.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetCodePage Specifies the code page to use for all source code files in the compilation.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetDebugType Specifies the debug type.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetDefineConstants Specifies the preprocessor symbols to define.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetDelaySign Specifies a value indicating whether to create a fully signed assembly.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetDisabledWarnings Specifies the list of warnings to disable.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetDocumentationFile Specifies the XML file in which to save processed documentation comments.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetEmitDebugInformation Specifies a value indicating whether to generate debugging information and place it in a program database (.pdb) file.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetErrorReport Specifies a value that indicates how internal compiler errors are reported to Microsoft.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetFileAlignment Specifies the size of sections in the output file.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetGenerateFullPaths Specifies a value indicating whether to specify the absolute path to the file in the compiler output.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetHighEntropyVA Sets the /highentropyva value as specified.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public method SetKeyContainer Specifies the name of the cryptographic key container.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetKeyFile Specifies the file name containing the cryptographic key.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetLangVersion Specifies the version of the language to use.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetLinkResources Creates links to the specified .NET Framework resources in the output file; the resource files are not placed in the output file.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetMainEntryPoint Specifies the location of the Main method.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetModuleAssemblyName Specifies an assembly whose non-public types a .netmodule can access.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetNoConfig Specifies a value indicating whether to prevent the compiler from compiling with the csc.rsp file.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetNoStandardLib Specifies a value indicating whether to prevent the import of mscorlib.dll.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetOptimize Specifies a value indicating whether to enable optimizations.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetOutputAssembly Specifies the name of the output file.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetPdbFile Specifies the program database (.pdb) file in which to place generated debugging information.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetPlatform Specifies the processor platform to be targeted by the output file.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetPlatformWith32BitPreference Sets the /platform value to AnyCPU32BitPreferred.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public method SetReferences Specifies the items from which to import public type information into the current project.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetResources Specifies the .NET Framework resources to embed into the output file.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetResponseFiles Specifies the response files that contain commands for the compiler.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetSources Specifies one or more Visual C# source files.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetSubsystemVersion Sets the subsystem version flag as specified.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public method SetTargetType Specifies the file format of the output file.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetTreatWarningsAsErrors Specifies a value indicating whether to treat all warnings as errors.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetWarningLevel Specifies the warning level, from 0-4.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetWarningsAsErrors Specifies a list of warnings to treat as errors.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetWarningsNotAsErrors Specifies a list of warnings that are not treated as errors.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetWin32Icon Specifies an .ico file to insert into the assembly.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)
Public method SetWin32Manifest Specifies a manifest file to insert into the assembly.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject2.)
Public method SetWin32Resource Specifies a Win32 resource (.res) file to insert into the output file.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ICscHostObject.)

Top

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.

See Also

Reference

Microsoft.Build.Tasks.Hosting Namespace