Change target CPU settings in Visual Studio 2010 Express - visual-studio

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.

Related

VS 2022 .NET 6.0 "Always start when Debugging"

I have an netstandard2.1 Project in my Solution that always starts even when I start debugging another project. I can enable this in Properties in the Solution explorer.
Now I added a .NET 6.0 project to the solution and I want the same behaviour. But I don't know where to enable this feature.
How can I activate the feature?
If I understand correctly you are looking for VS feature multiple startup projects.
To select multiple projects as startup you can right-click on the solution item in the solution explorer, select "Properties" and then under "Common Properties" -> "Startup Project" click on "Multiple startup projects" and select needed ones:

How to select debug profile in Visual Studio?

I have a .NET Core 3 (not ASP) project in Visual Studio 2019 that has two different launch profiles:
But whenever I launch my project, it always uses the first profile, even if I have the second profile selected in my project settings. How do I tell Visual Studio to actually use the other launch profile?
EDIT: This is what my toolbar looks like:
I have no dropdown to select a launch configuration. I found the "Start Debug Target" command and can add that to my toolbar, but it doesn't have a dropdown either, it looks just like the regular start button.
In projects you can configure the profile, not select it.
In order to select a profile you should choose it from dropdown list next to start button:
EDIT
On my VS the button is called Debug Target and is placed under Standard section in toolbar.
However, there's something fishy about this button in visual studio. When I removed button from visual studio I couldn't find it among other commands to readd it. After some googling I even found out there were problems with this in past.
https://developercommunity.visualstudio.com/content/problem/323626/if-you-remove-debug-target-from-toolbar-you-can-ne.html
Ewentually I found out two ways to bring it back.
Reset the standard toolbar
Add it from Add or remove buttons section next to standard toolbar

Visual Studio Default Interface?

I want to switch Visual Studio 2012 interface from .NET to C++ - I have selected .NET during first run, and now I dont know how to change it to C++.
At the moment it shows only .NET projects when I make "New Projects", and there seems to be no way to create anything else than that, however I have installed full version with other gadgets.
Try following steps like this:-
1) Tools -> Import and Export Settings...
2) Select "Reset all settings" and click Next
3) Choose "Yes" if you want to keep your existing settings
4) Click Next
5) Select the profile of your choice and click Finish.
I didn't think that the environment settings actually hid any particular project types, but the way to re-access the "which settings do you want to use?" dialog is under Tools -> Import and Export Settings.
One of the options is Reset all Settings, which then lets you select which defaults you wish to use.

Cannot find Property Manager option in Visual Studio (not Express version)

I need to work with the Property Sheet of a project. I followed instruction on msdn to try to find Property Manager under View, but I do not see Property Manager as a menu option under Tool. I only saw Property Pages and Properties Window. I tried both options but they do not seem to be where I can create a property sheet. My Visual Studio version is as follows: Microsoft Visual Studio 2010, Version 10.0.40219.1 SP1Rel Microsoft .NET Framework Version 4.0.30319 SP1Rel. Can anyone please give a pointer? Thanks.
I finally found mine under View->Other Windows, near the bottom.
Try resetting your View menu, Property Manager should indeed be there.
Go to Tools -> Customize.
In the popup window, select the Commands tab.
Select the Menu bar: button, and in the dropdown menu select View
Click Reset All and confirm.
This should restore Property Manager to your View menu.
To see the Property Manager you need to have Expert Settings enabled. You can find this option in:
Tools -> Settings
It is under View --> Other Windows --> Properties Manager. It works.
This is how I restored the Property Manager menu item in Visual Studio 2013:
Select Tools\Customize
Select the Commands Tab and Menu Bar
Under the dropdown beside Menu Bar, select "View | Other Windows" (or wherever you'd like to put it)
Click "Add Command..." and select the View category
Find and select Property Manager from Commands and click OK
In my case it was just in the VIEW toolbar - almost in the bottom. Running VS2013 Pro update 3
View > Property Manager or View > Other Windows > Property Manager, please try this
None of the above answers worked for me. What worked for me is:
Tools -> Import and Export Settings -> Reset all settings -> ... -> Visual C++ Development Settings
Despite I selected Visual C# settings at first use, for some reason, VC++ settings were ON, causing the visual components property window to not show up while pressing F4.
Selecting Visual C# settings ( in Tools | Import and export settings... | Reset All ) made it work.
Property Manager is a moot utility now. Since the property sheet is defined for each project, it can be edited by right clicking on the project and selecting properties. If you need to edit multiple projects once, just select all the projects you want to effect a change and do the right clicking trick.
This brings up the same property pages as it would from Property Manager.
Since none of the given answers worked for me here are my two cents.
Like any well hidden menu in Visual Studio this one can be found by opening Tools -> Options... -> Environment -> Keyboard and searching for "View.PropertyManager". There you can give it a global shortcut. While this only helps if you know the name of the menu or command you are looking for it's much faster go through a bunch of guesses this way than by randomly browsing menus.

Visual Studio 2010 "Solution platforms" popup missing

I'm getting a weird problem with Visual Studio 2010 Premium. I use two PCs, on the first there is no problem on the second the "Solution Platforms" popup menu disappeared, the configuration is the same (Windows 7 x64). The problem occured when I opened a project from a mercurial repo, I was not able to restore the popup. I reset the Visual Studio settings and done a Repair from the installer. No change. If I create an blank project (framework 2.0, 3.0, 3.5, 4.0) the "Solution Platforms" popup is still missing.
Also if I change the target platform with Build --> Configuration Manager there is no effect on the build (no compilation for x86 for example).
Any ideas (no full reinstallation please ) ?
thank you.
ps : Screenshot of the bug
André
Try the following:
From the list, select "Customize..."
On the screen that appears, click the
"Add Command..." button.
Select "Build" from the Categories
list, then scroll to "Solution
Platforms" in the Commands list and
click "OK"
Close the dialog and check your list, it should now be available.
The accepted answer is the wrong way to restore the platforms combobox. What you should do is find the little dropdown menu next to the configuration combobox and choose "Add/Remove buttons" From that list, check "Solution Platforms" and everything will be in its rightful place :)

Resources