How can I build in release in Visual Studio 2010 (C# Express)? - visual-studio-2010

I'm used to VS2008, in which a release build would be built upon pressing F6, or in the menu Build > Build Solution.
The build menu is gone, and although I can build the solution (through F6), it only builds the debug.
I assume there is some kind of configuration manager now, but I can't find it anywhere.

If you have no Build Menu in Visual Studio 2010 Express, go to the menu Tools -> Settings -> select 'Expert Settings'

Right-click solution > Configuration manager.
Sorry for not looking more before asking.

Also see this thread:
How to switch between debug/release in Visual c# 2010 express

Microsoft Visual C# 2010 express:
I hope you are facing a problem to get the build for release(.exe).
I hope the following steps will help you.Anyway i faced such a problem and solved by this.good luck.
Build > configuration manager > set active solution configuration to Release

Here's an answer to the same question that has not been propagated here yet:
https://stackoverflow.com/a/3127008/78162
Namely, you also need to go to Tools->Options->Projects and Solutions and turn on "Show advanced build configurations."

Related

Microsoft Visual Studio is Busy when trying to clean the solution using Xamarin

I have an application created by Xamarin.Forms (PCL)
When I try to Clean the solution,
visual-studio goes to stops working,
and I can't open any file or press anything to close it.
just by killing the visual-studio process
'End Process Tree for visual studio.exe'.
if I try to build or rebuild the solution is done without any problems.
if I try to clean Xamarin.Android or Web-Application solution is done.
the problem appears just in Xamarin.Forms solutions.
how I can solve this problem?
After many attempts, I found the solution without installing the latest version of the visual studio.
Step 1: Disable lightweight solution load
Tools → Option → Projects and Solutions → Lightweight solution load
Step 2: Make sure in the solution properties Lightweight Solution load is disable
Step 3: Uncheck Enable UI Debugging Tools for XAML
Tools → Option → Debugging → General → Enable UI Debugging Tools for XAML
Step 4: Rebuild Solution → Clean Solution
Also, you can clean the solution from Build → BatchBuild
References
Lightweight Solution Load in Visual Studio 2017
UI Debugging Tools for XAML" enabled causes program to hang for long periods
Deleting the .vs folder manually and relaunching the Visual Studio again solved my problem.

How to disable Fast Deployment in Visual Studio 2013

I am making a android app and when I try to deploy it, I got the following error
Deployment failed due to an error in FastDev assembly synchronization.
I have read in the Web, that I could resolve it if I disable Fast Deployment option, for it, Could anybody say me how I could do it in VS2013 or other place?
Thanks in advance
Alejandro
In VS2013, Right Click The Android Project -> Properties -> Build Options -> Uncheck: Use Fast Deployment
In Visual Studio 2017 (15.3.1 to 15.9.35) & Visual Studio 2019 (16.9.4):
Right-mouse click the Project in Visual Studio
Select Properties
Go to "Android Options"
Uncheck: "Use Fast Deployment (debug mode only)"
try it: Project / Project Options / Android Build / Fast deployment

VS2013 Build "Does not support previewing"

Every time I try to build my solution in VS2013, nothing builds, no errors - But in the status bar it says: "This item does not support previewing"
I googled around a bit but have come up empty.
But if I right click on each project and select build it works fine.
Any ideas?
Perhaps this message is totally unrelated... Post hoc ergo propter hoc
Steps to reproduce on my machine:
Right Click any project in solution: select build
Status bar displays Build successful
Right click solution select build
Status bar displays : "This item does not support previewing"
Perhaps it isnt related, but it sure does appear to be.
I was able to fix this... Somehow nothing was selected to build in the solution configuration. I right clicked on the solution, went to properties and then selected COnfiguration Properties and clicked the Build box for all the projects...
I have no idea how they became unchecked, only thing I can think of is a co-worker was trolling me.....
I've had this problem (i.e. debug not starting, and no error message) with Visual Studio 2015 in the following two cases:
after loading a solution that had previously been built with Visual Studio 2010
and also after using the "save as" function in Visual Studio 2015 to update a solution that had been started with Visual Studio 2010 (using Save as updates the solution file and sets the active Visual Studio version to 14 - i.e. VS 2015).
In both cases, deleting the bin and obj directories under the startup project fixed the problem. It's also worth closing visual studio and making sure that there are no {yourprojectname}.vshost.exe processes still running - if there are then kill them before running visual studio again. On that note, if you have multiple versions of visual studio on your machine, you should also check that you don't have the same solution open in the other version of visual studio at the same time (I've done that one myself).
One of the comments here suggests disabling the "enable visual studio hosted process" option. Don't do that if you can at all avoid it: you'll lose lots of debugging functionality (particularly in the area of being able to edit code while your solution is running).
Hope that helps someone out there.
Solution for VS2015
"this item does not support previewing" vs2015 (Visual Studio 2015/2016)
Step 1. Go to Control Panel -> Programs and Features
Step 2. Uninstall all: Windows Software Development Kit - Windows 10.0.10586.15 (maybe you have diff ver)
Step 3. Download new latest Windows Software Development Kit
https://go.microsoft.com/fwlink/p/?LinkId=619296
Install & Create new project, Done!
Dclick on MainPage.xaml and you will see Loading designer...
1: Add below lines in App.conf
<specFlow>
<unitTestProvider name="MSTest"></unitTestProvider>
</specFlow>
2: add a reference to Microsoft.VisualStudio.QualityTestTools.UnitTestFramework.dll
right click on your project and select: Add Reference
3: add using Microsoft.VisualStudio.TestTools.UnitTesting; in Step Defination
4: goto feature file and run it. This is what solve my problem on vs2013
I faced same issue with .aspx file. I just right click on the .aspx file and select open with (HTML Editor). You can choose any form the list.
I have come across the same issue for me, I have opened a project in VS 2010 and then when I open the same in VS 2015 then his error has occurred.
Solution:
By Closing the VS2010 project solution fixed the issue.

Visual Studio 2012 not debugging current solution

My Visual Studio 2012 Professional doesn't debug as it should.
It looks like VS is debugging old versions of my projects.
I tried debugging several projects but the same problem occurs with all of them, even when I start a new project (both console applications and windows forms applications).
It doesn't even hit the breakpoints I place right at the start of the program.
Things i've tried:
• cleaning and rebuilding my solution
• DEBUG -> options and settings -> Projects and Solutions -> Build and Run. Here I unchecked "Only build startup projects and dependencies on Run" and selected "Always build " from the "On Run, when projects are out of date" list
• deleting the .suo file (since the problem not project related I didn't expect it to be the solution but it was worth a shot).
As far as I know I didn't make any other changes to any property and I didn't perform any updates just before this issue started.
The following link descibes a similar issue but it doesn't contain a solution that works for me.
http://social.msdn.microsoft.com/Forums/vstudio/en-US/23e70e79-970d-423f-b434-12681b88ef2c/visual-studio-2012-debug-runs-old-code?forum=vsdebug
Superman also had a similar problem but again no suitable solution but in my case cleaning and rebuilding doesn't temporarily solve the problem.
Visual Studio 2012 Debugging Old Code
any ideas on how to solve this?
Have you tried a repair/reinstall of Visual Studio from the control panel ?
Also it could be related to a windows User profile issues. Assuming you are using Windows 7 you can try re-creating the profile using this post. http://www.techstaty.com/how-to-rebuild-a-windows-7-user-profile-the-correct-way/

How to debug YAF with visual studio 2010 Express

I am building a membership provider for use with YAF. I want to be able to debug YAF to understand and follow the process through.
I downloaded and installed YAF sucessfully. I then installed the YAF sources and built them sucessfully.
So, I have a website under VS2010 express that works, and the new YAF binary DLLs from the build.
I cannot see how to "attach" the source files to enable debugging the website.
A simple answer (found somewhere on stackoverflow,lost where but thanks anyway):-
Just needed to add the project to the website solution
By default, the solution is not shown in the solution explorer window
To get the solution added to the soluton explorer:
tools->Options -> Projects and Solutions
then check the "Always show solution" box
Then right click the solution in the solution explorer window to add the project.

Resources