I have a property sheet in Visual Studio 2010 that imports some other property sheets. My property sheet's imports section looks like this:
<ImportGroup Label="PropertySheets">
<Import Project="something.props" />
<Import Project="something.else.props" />
</ImportGroup>
I want to make sure that the person who adds my property sheet, which imports something and something.else can't accidentally change the import order of my included sheets. For example this would be wrong:
<Import Project="something.else.props" />
<Import Project="something.props" />
I checked Microsoft's website but I can't find a way to prevent the order from being changed. In Visual Studio intellisense shows Condition and Label for <ImportGroup>
and Condition, Label and Project for <Import>
. Aside from setting the file read only (which won't last since I have to check it into source control) is there anything I can do inside my property sheet to prevent the order from being changed?
Thanks