File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -743,7 +743,8 @@ private void CommonConstructor(
743743 if ( itemDefinitions == null || ! useItemDefinitionsWithoutModification )
744744 {
745745 // TaskItems don't have an item type. So for their benefit, we have to lookup and add the regular item definition.
746- inheritedItemDefinitions = ( itemDefinitions == null ) ? null : new List < ProjectItemDefinitionInstance > ( itemDefinitions ) ;
746+ inheritedItemDefinitions = ( itemDefinitions == null ) ? null : new List < ProjectItemDefinitionInstance > ( itemDefinitions . Count + 1 ) ;
747+ ( ( List < ProjectItemDefinitionInstance > ) inheritedItemDefinitions ) ? . AddRange ( itemDefinitions ) ;
747748
748749 ProjectItemDefinitionInstance itemDefinition ;
749750 if ( projectToUse . ItemDefinitions . TryGetValue ( itemTypeToUse , out itemDefinition ) )
You can’t perform that action at this time.
0 commit comments