55 references to ComReferenceTypes
Microsoft.Build.Tasks.Core (35)
ComReferenceTypes.cs (4)
25
return string.Equals(refType,
ComReferenceTypes
.tlbimp, StringComparison.OrdinalIgnoreCase);
33
return string.Equals(refType,
ComReferenceTypes
.aximp, StringComparison.OrdinalIgnoreCase);
41
return string.Equals(refType,
ComReferenceTypes
.primary, StringComparison.OrdinalIgnoreCase);
49
return string.Equals(refType,
ComReferenceTypes
.primaryortlbimp, StringComparison.OrdinalIgnoreCase);
ResolveComReference.cs (30)
375
if ((pass == 0 &&
ComReferenceTypes
.IsPia(wrapperType)) ||
376
(pass == 1 &&
ComReferenceTypes
.IsTlbImp(wrapperType)) ||
377
(pass == 2 &&
ComReferenceTypes
.IsPiaOrTlbImp(wrapperType)) ||
378
(pass == 3 &&
ComReferenceTypes
.IsAxImp(wrapperType)))
783
if (
ComReferenceTypes
.IsAxImp(axRefInfo.taskItem.GetMetadata(ComReferenceItemMetadataNames.wrapperTool)))
791
if (
ComReferenceTypes
.IsTlbImp(tlbWrapperType) ||
ComReferenceTypes
.IsPia(tlbWrapperType) ||
ComReferenceTypes
.IsPiaOrTlbImp(tlbWrapperType))
829
newTlbRef.taskItem.SetMetadata(ComReferenceItemMetadataNames.wrapperTool,
ComReferenceTypes
.primaryortlbimp);
951
if ((pass == 0 && (
ComReferenceTypes
.IsPia(neededRefType) || neededRefType == null)) ||
952
(pass == 1 && (
ComReferenceTypes
.IsTlbImp(neededRefType) || neededRefType == null)) ||
953
(pass == 2 && (
ComReferenceTypes
.IsAxImp(neededRefType))))
960
if ((pass == 0 &&
ComReferenceTypes
.IsPia(wrapperType)) ||
961
(pass == 1 &&
ComReferenceTypes
.IsTlbImp(wrapperType)) ||
962
(pass == 2 &&
ComReferenceTypes
.IsAxImp(wrapperType)))
1015
if (
ComReferenceTypes
.IsPia(wrapperType))
1020
else if (
ComReferenceTypes
.IsTlbImp(wrapperType))
1025
else if (
ComReferenceTypes
.IsAxImp(wrapperType))
1030
else if (wrapperType == null ||
ComReferenceTypes
.IsPiaOrTlbImp(wrapperType))
1091
if (wrapperType == null ||
ComReferenceTypes
.IsPiaOrTlbImp(wrapperType))
1096
wrapperType =
ComReferenceTypes
.primary;
1100
wrapperType =
ComReferenceTypes
.tlbimp;
1333
if (
ComReferenceTypes
.IsTlbImp(projectRefInfo.taskItem.GetMetadata(ComReferenceItemMetadataNames.wrapperTool)))
1487
if ((!
ComReferenceTypes
.IsAxImp(wrapperTool)) &&
1488
(!
ComReferenceTypes
.IsTlbImp(wrapperTool)) &&
1489
(!
ComReferenceTypes
.IsPia(wrapperTool)))
1525
reference.SetMetadata(ComReferenceItemMetadataNames.wrapperTool,
ComReferenceTypes
.tlbimp);
1539
reference.SetMetadata(ComReferenceItemMetadataNames.wrapperTool,
ComReferenceTypes
.tlbimp);
1561
if ((pass == 0 &&
ComReferenceTypes
.IsAxImp(wrapperType)) ||
1562
(pass == 1 &&
ComReferenceTypes
.IsTlbImp(wrapperType)))
ResolveNativeReference.cs (1)
323
itemTypeLib.SetMetadata(ComReferenceItemMetadataNames.wrapperTool,
ComReferenceTypes
.tlbimp);
Microsoft.Build.Tasks.UnitTests (20)
ResolveComReference_Tests.cs (20)
171
AssertMetadataInitialized(item, ComReferenceItemMetadataNames.wrapperTool,
ComReferenceTypes
.tlbimp);
175
item.SetMetadata(ComReferenceItemMetadataNames.wrapperTool,
ComReferenceTypes
.aximp);
177
AssertMetadataInitialized(item, ComReferenceItemMetadataNames.wrapperTool,
ComReferenceTypes
.aximp);
192
AssertMetadataInitialized(item, ComReferenceItemMetadataNames.wrapperTool,
ComReferenceTypes
.tlbimp);
196
item.SetMetadata(ComReferenceItemMetadataNames.wrapperTool,
ComReferenceTypes
.aximp);
198
AssertMetadataInitialized(item, ComReferenceItemMetadataNames.wrapperTool,
ComReferenceTypes
.aximp);
234
TaskItem reference = CreateComReferenceTaskItem("ref", refGuid.ToString(), "11", "0", "1033",
ComReferenceTypes
.tlbimp);
275
TaskItem axTaskItem = CreateComReferenceTaskItem("axref", axGuid.ToString(), "1", "0", "1033",
ComReferenceTypes
.aximp);
276
TaskItem tlbTaskItem = CreateComReferenceTaskItem("tlbref", tlbGuid.ToString(), "5", "1", "0",
ComReferenceTypes
.tlbimp);
277
TaskItem piaTaskItem = CreateComReferenceTaskItem("piaref", piaGuid.ToString(), "999", "444", "123",
ComReferenceTypes
.primary);
322
retValue = rcr.IsExistingProjectReference(axAttr,
ComReferenceTypes
.aximp, out referenceInfo);
326
retValue = rcr.IsExistingProjectReference(axAttr,
ComReferenceTypes
.tlbimp, out referenceInfo);
335
retValue = rcr.IsExistingProjectReference(tlbAttr,
ComReferenceTypes
.tlbimp, out referenceInfo);
339
retValue = rcr.IsExistingProjectReference(tlbAttr,
ComReferenceTypes
.primary, out referenceInfo);
348
retValue = rcr.IsExistingProjectReference(piaAttr,
ComReferenceTypes
.primary, out referenceInfo);
352
retValue = rcr.IsExistingProjectReference(piaAttr,
ComReferenceTypes
.aximp, out referenceInfo);
436
Assert.Equal(
ComReferenceTypes
.primaryortlbimp, newTlbInfo.taskItem.GetMetadata(ComReferenceItemMetadataNames.wrapperTool)); // "The added reference should have the tlbimp/primary wrapper tool"
773
TaskItem axTaskItem = CreateComReferenceTaskItem("ref", axGuid.ToString(), "1", "2", "1033",
ComReferenceTypes
.aximp);
782
TaskItem tlbTaskItem = CreateComReferenceTaskItem("ref", axGuid.ToString(), "1", "2", "1033",
ComReferenceTypes
.tlbimp, "true");
789
TaskItem tlbTaskItem = CreateComReferenceTaskItem("ref", axGuid.ToString(), "1", "2", "1033",
ComReferenceTypes
.primary, "true");