This documentation is archived and is not being maintained.

IVbcHostObject Interface

Defines an interface that allows the Vbc task to communicate with the host integrated development environment (IDE).

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

public interface IVbcHostObject : ITaskHost

The IVbcHostObject type exposes the following members.

Public methodBeginInitializationBegins the initialization of the IVbcHostObject.
Public methodCompileCompiles the project.
Public methodEndInitializationEnds the initialization of the IVbcHostObject.
Public methodIsDesignTimeReturns a value indicating whether the integrated development environment (IDE) is currently in design time mode.
Public methodIsUpToDateReturns a value indicating whether the compiled project is up-to-date.
Public methodSetAdditionalLibPathsSpecifies additional directories to search for references.
Public methodSetAddModulesSpecifies one or more modules to be part of the assembly.
Public methodSetBaseAddressSpecifies the preferred base address at which to load a DLL.
Public methodSetCodePageSpecifies the code page to use for all source code files in the compilation.
Public methodSetDebugTypeSpecifies the debug type.
Public methodSetDefineConstantsSpecifies the preprocessor symbols to define.
Public methodSetDelaySignSpecifies a value indicating whether to create a fully signed assembly.
Public methodSetDisabledWarningsSpecifies the list of warnings to disable.
Public methodSetDocumentationFileSpecifies the XML file in which to save processed documentation comments.
Public methodSetErrorReportSpecifies a value that indicates how internal compiler errors are reported to Microsoft.
Public methodSetFileAlignmentSpecifies the size of sections in the output file.
Public methodSetGenerateDocumentationSpecifies a value indicating whether to generate documentation and place it in an XML file with the name of the executable file or library that the compiler is creating.
Public methodSetImportsSpecifies the namespaces to import.
Public methodSetKeyContainerSpecifies the name of the cryptographic key container.
Public methodSetKeyFileSpecifies the file name containing the cryptographic key.
Public methodSetLinkResourcesCreates links to the specified .NET Framework resources in the output file; the resource files are not placed in the output file.
Public methodSetMainEntryPointSpecifies the class or module that contains the location of the Sub Main procedure.
Public methodSetNoConfigSpecifies a value indicating whether to prevent the compiler from compiling with the vbc.rsp file.
Public methodSetNoStandardLibSpecifies a value indicating whether to prevent the import of mscorlib.dll.
Public methodSetNoWarningsSpecifies a value indicating whether the compiler supresses all warnings.
Public methodSetOptimizeSpecifies a value indicating whether to enable optimizations.
Public methodSetOptionCompareSpecifies a value indicating how the compiler makes string comparisons.
Public methodSetOptionExplicitSpecifies a value indicating whether the explicit declaration of variables is required.
Public methodSetOptionStrictSpecifies a value indicating whether the compiler enforces strict type semantics to restrict implicit type conversions.
Public methodSetOptionStrictTypeSpecifies that the compiler should warn when strict language semantics are not respected.
Public methodSetOutputAssemblySpecifies the name of the output file.
Public methodSetPlatformSpecifies the processor platform to be targeted by the output file.
Public methodSetReferencesSpecifies the items from which to import public type information into the current project.
Public methodSetRemoveIntegerChecksSpecifies a value indicating whether to disable integer overflow error checks.
Public methodSetResourcesSpecifies the .NET Framework resources to embed into the output file.
Public methodSetResponseFilesSpecifies the response files that contain commands for the compiler.
Public methodSetRootNamespaceSpecifies the root namespace for all type declarations.
Public methodSetSdkPathSpecifies the location of mscorlib.dll and microsoft.visualbasic.dll.
Public methodSetSourcesSpecifies one or more Visual Basic source files.
Public methodSetTargetCompactFrameworkSpecifies a value indicating whether to target the .NET Compact Framework.
Public methodSetTargetTypeSpecifies the file format of the output file.
Public methodSetTreatWarningsAsErrorsSpecifies a value indicating whether to treat all warnings as errors.
Public methodSetWarningsAsErrorsSpecifies a list of warnings to treat as errors.
Public methodSetWarningsNotAsErrorsSpecifies a list of warnings that are not treated as errors.
Public methodSetWin32IconSpecifies an .ico file to insert into the assembly.
Public methodSetWin32ResourceSpecifies a Win32 resource (.res) file to insert into the output file.

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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