Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio keeps running the old build

I have a simple Silverlight program that displays a bunch of images. I modified it do display more images, but it when I hit "run without debugging" is keeps running the old build with fewer images. When I copy the code into a new project and run it, it works fine for the first time, but then each subsequent change is not displayed. What could be the problem? I'm using Visual Web Developer 2008 Express.

like image 208
Mike Pike Avatar asked Jan 15 '11 11:01

Mike Pike


People also ask

How do I stop a build in Visual Studio?

You can hit Ctrl + Break on the keyboard to cancel/stop a build that is currently in progress.

How do I stop Visual Studio from running?

VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program.

What is the Clean build code for Visual Studio?

On the menu bar, choose Build, and then choose either Build ProjectName or Rebuild ProjectName. Choose Build ProjectName to build only those project components that have changed since the most recent build. Choose Rebuild ProjectName to "clean" the project and then build the project files and all project components.


2 Answers

Always check "Configuration Manager" option on "Build" menu in Microsoft Visual Web Developer. The checkBox "build" has to be checked, otherwise it won't build.

Happened to me, I hope this helps others.

like image 99
Rui Belo Pais Avatar answered Oct 08 '22 01:10

Rui Belo Pais


I just had this happen to me in VS 2013 for Web. Had to change the Project URL in:

"Project properties"
"Web" tab
  "Servers"

To a different localhost number and recreate Virtual directory.

Before my Project URL was:

http://localhost:55487/ 

I changed it to:

http://localhost:55488/  

Then clicked "Create Virtual Directory".

Would like to know why this happened in the first place.

like image 23
ADyson Avatar answered Oct 08 '22 01:10

ADyson