2016-06-07 14 views
0

我想創建一個ms項目xml文件使用c#。除了將任務模式設置爲自動調度並且狀態爲激活的任務外,一切都可以。這裏是任務元素,我的程序產生:標籤isNull和活動不影響項目

<Task> 
    <UID>10</UID> 
    <ID>1</ID> 
    <Name>Componente - Conversion</Name> 
    <Active>1</Active> 
    <Manual>0</Manual> 
    <Type>2</Type> 
    <isNull>0</isNull> 
    <WBSLevel>1</WBSLevel> 
    <Duration>PT1H0M00S</Duration> 
    <ManualDuration>PT1H0M00S</ManualDuration> 
    <CalendarUID>-1</CalendarUID> 
    <IgnoreResourceCalendar>1</IgnoreResourceCalendar> 
    <ExtendedAttribute> 
    <FieldID>188743748</FieldID> 
    <Value>1</Value> 
    </ExtendedAttribute> 
</Task> 

,但是當我在MS項目2010中打開該文件的結果是這樣的: enter image description here

有什麼我失蹤?

回答

0

我發現錯誤,標籤isNull和isPublished應該是IsNull和IsPublished。