Program edit while application runs

G

Guest

In Visual Interdev, the source code can be edited (both clientside and server
side) while the application is running. And the changes will still be
reflected in the application without the need for restarting.

Is it possible in Visual .net development environment?
 
M

MattC

Code behind cannot be edited while running as this needs to be compiled to
an assembly DLL. Work done in the aspx page is compiled at runtime (if a
new version or not previously compiled version is found) so changes to the
HTML or inline code will be repflected on screen with a refresh.

MattC
 
G

Guest

rkbnair said:
In Visual Interdev, the source code can be edited (both clientside and server
side) while the application is running. And the changes will still be
reflected in the application without the need for restarting.

Is it possible in Visual .net development environment?

If you include the code directly in you ASPX file or you use the src
page directive to reference a code behind file, the ASP.NET framework
will automatically detect changes to these files and compile them. You
cannot edit the file in debug mode and then step into your new code
because the page has to be recompiled.
If you use precompiled assemblies, such as Visual Studio .NET does,
you'll have to compile all your code behind classes and deploy them to
the server to see the changes.

Visual Basic 6.0 had a feature called edit-and-continue which allowed
you to make a change in the code while debugging and step directly into
your new code. Visual Studio 2005 will have a support for
edit-and-continue in both VB.NET and C#.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top