Generated Project File

Posts   
 
    
mafuba
User
Posts: 8
Joined: 27-Mar-2006
# Posted on: 27-Mar-2006 21:41:45   

It appears that the csproj file I generate (2 Class, VS2005) rearranges the order of the classes added to the project on every generation.

This can play havoc with trying to keep the file in source control or doing a meaningful diff between generations.

Is there a way to make the classes always be added in the same order (perhaps alphabetically) in the project file during generation?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 28-Mar-2006 08:46:07   

The only thing I know about generating the code and the Source Safe, is that LLBLGen always re-generate the classes and if nothing is changed, they will be detected as changed by Source Safe, because LLBLGen writes a Timestamp in all the generated files, that's why they might appear as different versions.

To overcome this issue , just set TdlEmitTimeDateInOutputFiles in the project properties to false. This is an inherited property from the preferences, so for future project, also set it in the preferences.

And then no timestamp will be emitted in the generated files.

mafuba
User
Posts: 8
Joined: 27-Mar-2006
# Posted on: 31-Mar-2006 23:43:10   

Actually, I was talking about the actual csproj file. This file adds all of the generated classes to a VS project. But the order that the classes are added seems to be random.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39930
Joined: 17-Aug-2003
# Posted on: 01-Apr-2006 09:45:55   

mafuba wrote:

Actually, I was talking about the actual csproj file. This file adds all of the generated classes to a VS project. But the order that the classes are added seems to be random.

No, it's not random. During code generation, the files generated are cached. THese files are added to the project file. This is done in a list, so it's FIFO (first in firstout).

'Random' means that it doesn't even looks like the previous order?

Frans Bouma | Lead developer LLBLGen Pro