IVsProjectBuildSystem::SetHostObject Method (String^, String^, Object^)
Visual Studio 2015
Sets the object used to communicate between MSBuild and the host IDE.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Parameters
- pszTargetName
-
Type:
System::String^
[in] Pointer to a string containing the name of the build target.
- pszTaskName
-
Type:
System::String^
[in] Pointer to a string containing the name of the task for MSBuild to perform.
- punkHostObject
-
Type:
System::Object^
[in] Pointer to the T:Microsoft.VisualStudio.IUnknown interface of the host object.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
[C++]
HRESULT IVsProjectBuildSystem::SetHostObject( [in] LPCOLESTR pszTargetName, [in] LPCOLESTR pszTaskName, [in] IUnknown* punkHostObject );
Show: