Implemented interface member:
property
HostObject
Microsoft.Build.Framework.ITask.HostObject
26 references to HostObject
Microsoft.Build.Tasks.CodeAnalysis (12)
src\Compilers\Core\MSBuildTask\Csc.cs (6)
244if (HostObject is ICscHostObject csHost) 248else if (HostObject != null) 730if (HostObject != null) 741if (HostObject is ICscHostObject hostObjectCOM) 816Debug.Assert(HostObject != null, "We should not be here if the host object has not been set."); 818ICscHostObject? cscHostObject = HostObject as ICscHostObject;
src\Compilers\Core\MSBuildTask\Vbc.cs (6)
541if (this.HostObject is IVbcHostObject vbHost) 545else if (this.HostObject != null) 1032if (this.HostObject != null) 1043if (HostObject is IVbcHostObject hostObjectCOM) 1118Debug.Assert(this.HostObject != null, "We should not be here if the host object has not been set."); 1120IVbcHostObject? vbcHostObject = this.HostObject as IVbcHostObject;
Microsoft.Build.Tasks.CodeAnalysis.Sdk (12)
src\Compilers\Core\MSBuildTask\Csc.cs (6)
244if (HostObject is ICscHostObject csHost) 248else if (HostObject != null) 730if (HostObject != null) 741if (HostObject is ICscHostObject hostObjectCOM) 816Debug.Assert(HostObject != null, "We should not be here if the host object has not been set."); 818ICscHostObject? cscHostObject = HostObject as ICscHostObject;
src\Compilers\Core\MSBuildTask\Vbc.cs (6)
541if (this.HostObject is IVbcHostObject vbHost) 545else if (this.HostObject != null) 1032if (this.HostObject != null) 1043if (HostObject is IVbcHostObject hostObjectCOM) 1118Debug.Assert(this.HostObject != null, "We should not be here if the host object has not been set."); 1120IVbcHostObject? vbcHostObject = this.HostObject as IVbcHostObject;
PresentationBuildTasks (2)
MS\Internal\Tasks\TaskFileService.cs (2)
408if (_buildTask != null && _buildTask.HostObject != null) 410_hostFileManager = _buildTask.HostObject as IVsMSBuildTaskFileManager;