Re-enable "this project is out of date" Dialog Box - visual-studio-2013

How do I re-enable the "this project is out of date" Dialog Box in Visual Studio 2013 Professional?

You can switch it back on at Tools -> Options -> Projects and Solutions -> Build and Run.
There first option showing a combobox is "On Run, when projects are out of date:".
There you have to select "Prompt to build".
See also:
https://developercommunity.visualstudio.com/content/problem/8263/the-setting-on-run-when-projects-out-of-date-has-n.html

Related

How to disable "Run execution to here" in Visual Studio 15?

How do I disable "Run execution to here" button that appears when moving cursor to the left of the code? It's really annoying when I accidentally click it while selecting code.
Uncheck Show run to click button in editor while debugging at the very end of Debugging options:
A slight difference in Visual Studio 2019

Visual Studio 2012 runs app with existing errors

my Visual Studio 2012 Ultimate compiles even though there's an error. It takes the old .exe then. I remember, that there's a popup that asks - "Do you want that we take the old .exe" - or something similar and I probably clicked yes there by mistake. However, I can't find that settings and therefor can't deactivate that.
Does anyone know where I can do that?
Tools > Options > Projects and Solutions > Build and Run:
"On Run, when build or deployment errors occur:"
-> "Prompt to launch"
edit: You may need to click "Show all settings" for the "Projects and Solutions" category to be visible.

How do I set Visual Studio to always build and debug when F5 is pressed? [duplicate]

This question already has answers here:
Visual Studio 2010 isn't building before a run when there are code changes
(10 answers)
Closed 9 years ago.
It used to do this, but now if I don't build the solution first before pressing F5, it uses the last built program.
I must have messed up a setting somewhere I think.
Open the "Tools" menu, and click "Options".
Expand "Projects and Solutions".
Click on "Build and Run" tab.
In the "On Run, when projects are out of date" dropdown, select "Always build".
You are probably working on a multi-project solution:
Get properties of your solution (right click → Properties)
Click on "Configuration Properties".
Tick the "Build" check box for the project that is not compiled properly.
Go menu Tools → Options. Under Projects and Solutions → Build and Run.
For "On Run, when projects are out of date:", choose "Always build". Now it should automatically build, and then run (unless there are errors; then the behavior here is dictated by the other setting right underneath it).

Change target CPU settings in Visual Studio 2010 Express

I wish to change the target CPU settings from "Any CPU" to "x86" in Visual Studio 2010.
I read on another website that I need to do the following:
Go to the startup project of your program.
Open the properties window.
Click the compile tab.
Click advanced compile options.
Change the target CPU options to x86.
But I don't see the "compile" tab anywhere in the properties.
Please help me at the earliest.
Update: I do see a platform dropdown, but that contains nothing apart from "Any CPU",
.
I believe the reason you don't see the Compile tab in the project properties is because you're using the Express edition. Optimization for a specific CPU type is not offically supported in this edition. However, you should be able to change the active solution platform in the following way:
From the "Tools" menu, select the "Options" item, and then select the "Projects and Solutions" option in the listbox on the left-hand side of the Options dialog. (You might have to check "Show all settings" first.) Check the box that says "Show advanced build configurations":
Then, on the "Build" menu, see if you have an item called "Configuration Manager". If not, you need to add the item to the menu (right-click on any area in the toolbar and choose "Customize" at the bottom of the list).
Once you've opened the Configuration Manager dialog, go to the "Active solution platform" drop-down box and choose "New". From the "New Solution Platform" dialog that appears, you should be able to choose "x86" from the first drop-down box.
Alternatively, it looks like you can manually edit the project file to specify the CPU type. See Changing the target CPU in VB Express 2008. It looks like it amounts to simply changing the <PlatformTarget> under the first <PropertyGroup> section to "x86".
To make the Build menu bar appear on your Visual Studio 2010, go to menu Tools -> Settings -> check Expert Settings. So later on you can use Configuration Manager.
I don't have Visual Studio 2010 right now, but in Visual Studio 2008, you have to first add a configuration through Build -> Configuration Manager.
After you have added the configuration, you can simply select the Active Configuration through the drop down menu.
I don't have Visual Studio 2010 right now, but in Visual Studio 2008, you have to first add a configuration through Build -> Configuration Manager.
After you have added the configuration, you can simply select the Active Configuration through the drop down menu.

Why doesn't F5 rebuild project before execution in Visual Studio?

If I press F5, my project runs but it doesn't "see" any of the changes that I made. I need to manually (re)build before pressing F5 for it to work.
It worked well previously. Any idea what I need to change?
Also :
Right Click on the solution in the solution explorer.
Click on "Properties".
Navigate to configuration Properties -> Configuration on the left side of the window.
Make sur the "Build" checkbox is checked on the line of your project.
Is it possible that you've reconfigured your "Build and Run" settings to "Never build"?
To check, follow these steps:
From the Visual Studio IDE, open the "Tools" menu, and click "Options".
Expand the "Projects and Solutions" header on the left.
Click the "Build and Run" item.
In the combo box labeled "On Run, when projects are out of date", ensure that you have the "Always build" option selected.
Another reason (which I had) could be dependencies.
In Solution Explorer, right click the Startup Project - Build Dependencies - Project Dependencies.
If the project you are working on is not set as a dependency of the Startup project then it won't get Built when you F5 / run.
Ok, for some reason all of the above solutions do not work for me, so I made a Pre-Build event (Right click project -> Properties -> Build Events) where I delete the bin and obj folder before building.
I am new to C# and Visual Studio but i found that going to Build -> Clean Project also worked for me, if you have already tried to select "Always build" option and it didn't work.

Resources