CleanUpVsNetProjects Explanation

Posts   
 
    
NickD
User
Posts: 224
Joined: 31-Jan-2005
# Posted on: 13-Jul-2005 20:51:33   

I like the fact that this is an option, but it doesn't behave the way I expect it to, so please help me understand.

I had a project today that I generated and I unkowningly included some tables (entities) which I didn't want. However, I didn't know that until after I generated my code and loaded the project into .NET. So, I went back to the LLBLGen designer, deleted those entities, set the CleanUpVsNetProjects to true (in both default prefs and current project prefs) and regenerated. I got the prompt in .NET about reloading a project that had been modified outside of itslef and chose to reload. I went to verify that those entity files had been removed but they were still in the project. I had to manually select them and exclude from project.

Now, I read in the docs that "When set to true, the VS.NET project file task performer will first remove all file references for files from an existing VS.NET project file, before adding the files generated. " It then goes on to say something abou the Generator flag in 2005 being different. Does the fact that I have NOT set the generator flag in my 2003 project have something to do with the file references not being removed?

Thanks.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 14-Jul-2005 10:15:30   

No, this is something vs.net 2003 does sometimes. For best results, first close vs.net, then regenerate, then reload. (or close the solution).

I've seen it to. It sometimes works, and at other times it doesn't. Very strange as the code always removes ALL references to cs/vb files and then re-adds the files generated...

Frans Bouma | Lead developer LLBLGen Pro