Source Code Synchronization

Topic updated 11-10-2007

Why have we created this?

Although we have an integrated Source Editor, our users are constantly switching to VS.NET for debugging purposes. Sometimes while debugging, it’s needed to change code to test again, etc.

 

How to activate this feature?

CodeSynchronization

 

How does it work?

It outputs extra regions in the Generated File.

Please notice that when you are inside the GenWise IDE you don’t see these regions (so the code stays clean and nice).Whenever you want you can turn this option OFF and the output regions will be gone from the Generated Files also.

 

using System;

#region User CodeBlock [ Class|Imports|CustomNameSpaces]

using NUnit.Framework;

using NUnit.Core;

using NHibernate;

using NHibernate.Expression;

 

#endregion User CodeBlock [ Class|Imports|CustomNameSpaces]

 

 

Synchronization Limitations

Currently it only works for .cs files.
It’s only possible for code that’s inside one of the marked regions. We are “ignoring” any other difference.

 

How to use it?

(Optional) Include the Vs.NET extension in your Web Projects to get automatically a solutions with the Db and UI projects linked
Generate your project
Open project/solution in vs.net
Modify any code that’s inside a User CodeBlock region : Compile / Debug / Test in Vs.NET
Once you are happy with the changes, you can apply them back by using “Synchronize Source” menu option. This command (menu option) can be located at Project Level or Item Level.
 

SynchronizeSource

 

 

After selecting that option , if there is any different you will presented with the source comparison result:

 

SynchronizeSource_differences

 

 

Note: the differences are x File, so you accept all changes to 1 file or you can ignore x File.

 

Use the Apply Change (and go to next difference) button to accept the presented changes and continue with the next difference
Ignore (+go to next)  : ignore "this" difference and go to next file.
Stop Comparing : stop the process.