Solved

Cannot use "Edit and continue" in Visual Studio 2005

Posted on 2009-07-13
4
250 Views
Last Modified: 2013-12-17
Hi,

I'm writing a plugin for an external program (MapWindow) using VB.NET and Visual Studio 2005. The project builds as a class library (.dll). The debugger starts the external program that loads the project. This works fine but in break mode I cannot edit the source files, they are locked for editing.

Does anybody have an idea why the Edit and continue feature is not available in this scenario? I've checked all the obvious settings and other projects can be edited while debugging.
Note that the output path for the build is not the default debug folder, the project has to build in the plugin folder of the external program. Could this be the problem?

TIA
0
Comment
Question by:JosP
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:strickdd
ID: 24839554
There are only certain project types that allow for the editing while running the program. These are any application types that can be compiled on the fly (i.e. websites). If they cannot compile on the fly, you cannot make changes while in debug.
0
 

Author Comment

by:JosP
ID: 24839629
Not sure what you mean with compile on the fly.
This project type is basically the same as for example an add-in for any of the Office products. I never had any trouble using edit and continue with those projects.
0
 
LVL 28

Accepted Solution

by:
strickdd earned 500 total points
ID: 24839887
when I say "compile on the fly" I mean that it is NOT REQUIRED that you build the project to use it. For example, if you create a website and just run it, IIS will automatically compile the website for you. While in debug, if you make a change IIS will detect this and recompile the site "on the fly".

If you are working with a project that requires the compiler to create the DLL, then you will need to stop debugging and re-run/re-compile the application to make the changes.
0
 

Author Closing Comment

by:JosP
ID: 31602810
Still don't understand why it doesn't work in this scenario, but I accept that it just doesn't, for some reason...
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now