Solved

Cannot use "Edit and continue" in Visual Studio 2005

Posted on 2009-07-13
4
255 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Powershell File Sort 8 41
FInd Image Control Gridview 3 21
VS 2017 18 40
Easy filter aspnet 2 24
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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