To delete or not to delete

Posts   
 
   
 
Anonymous
User
Posts: 0
Joined: 11-Nov-2006
# Posted on: 05-Oct-2006 20:08:32   

Hi Guys,

I feel like I'm not generating code quite the way I'm meant to.

Is it possible to re-generate code so it replaces the old project files? At the moment I have to keep closing Visual Studio to delete the project files (presumably because VS has a lock on them) and then regenerate. Normally, I wouldn't mind but resharper's loading time can be a little sluggish.

Cheers,

Pete

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 06-Oct-2006 02:10:26   

Why are you deleting the projects. This can cause issues with project references that other projects in the same solution may have. When you regenerate the new files should be reflected in the project.

Anonymous
User
Posts: 0
Joined: 11-Nov-2006
# Posted on: 06-Oct-2006 02:33:09   

That's what I thought but often the changes I make aren't being reflected when I rebuild the generated projects. Is there a problem with VS recognising the changes?

Cheers, Pete

Walaa avatar
Walaa
Support Team
Posts: 14987
Joined: 21-Aug-2005
# Posted on: 06-Oct-2006 07:34:09   

That's wierd, What is the version of Visual Studio that you use?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39797
Joined: 17-Aug-2003
# Posted on: 06-Oct-2006 09:34:24   

For best results, you should close vs.net or at least close the solution, then generate code, then reload the solution. And be sure you set the CleanUpVsNetProjects property of the LLBLGen Pro project to true in the designer prior to generating code simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Anonymous
User
Posts: 0
Joined: 11-Nov-2006
# Posted on: 06-Oct-2006 11:29:43   

Hi Frans,

Is still behaving a bit odd. Once I've generated the code and re-built the projects, I then add an LL-ObjectDataSource control and configure it to use the xEntityFactoryType. If I then close and reopen the configuration window, it will have returned to the first FactoryType in the list. I then have to close and reopen visual studio again before everything works correcly. Is it just me? cry

Cheers,

Pete

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39797
Joined: 17-Aug-2003
# Posted on: 06-Oct-2006 13:53:34   

Rebuild first. It's a nightmare though... vs.net has to deliver the types to the designer, but fails sometimes because it makes a mess of which assemblies are loaded into memory...

And use the latest runtimes, as a bug was fixed some time ago which failed to pre-select the set factory.

Frans Bouma | Lead developer LLBLGen Pro
Anonymous
User
Posts: 0
Joined: 11-Nov-2006
# Posted on: 07-Oct-2006 19:07:43   

Hi Otis,

Am still experiencing problems with VS picking up changes but not to worry. Is only a restart after all, and if nothing else it making me consider my changes more carefully simple_smile

Next time, can you write visual studio - it might behave the way its supposed to then! wink

Cheers,

Pete