Visual Studio C# Project Item Metadata Layout Order

ahichudjh

New Member
How can I force Visual Studio to enumerate metadata within "PublishFile" project item in a certain permanent order any time it generates new xml file after modifications through IDE designer?UPDATE: It actually forces metadata order and discards my manual changes when I intentinally shuffle elements within project item and then edit and save project file from IDE. The problem is that this forced order may occasionally change itself for no clear reason.Suppose we have this project item: \[code\]<PublishFile Include="SomeFile"> <Visible>False</Visible> <Group> </Group> <TargetPath> </TargetPath> <PublishState>Include</PublishState> <IncludeHash>True</IncludeHash> <FileType>Assembly</FileType> </PublishFile>\[/code\]I edit application revision from IDE and get the metadata in another order\[code\] <PublishFile Include="SomeFile"> <Visible>False</Visible> <PublishState>Include</PublishState> <IncludeHash>True</IncludeHash> <Group> </Group> <TargetPath> </TargetPath> <FileType>Assembly</FileType> </PublishFile>\[/code\]Now Visual Studio "thinks" this order is right and discards my manual shuffle. But some time before it rewrote the item itself with new order.Can this depend on any data which may impact Visual Studio behavior?
 
Back
Top