Visual studio How to set the active test settings - visual-studio-2010

Hi
My question is about how can i set the active test settings in the project file for visual studio 2010, I mean, what flag or entry does the visual studio modify in the solution file or where is that setting.
Im developing a solution file generator but cant find the way to auto select the required test settings as the default settings

If you do not see anything under the Menu Item "Test > Select Active Test Settings" or "Test > Edit Test Settings", Check your Solution Explorer window for files ending with ".testsettings" under the "Solution Items" folder.
If there are not any .testsettings files, you can right click the "Solution Items" or "Solution" folder, then click on "Add" then select "New Item". Under the "Installed Templates" select "Test Settings". Select the "Test Settings" template, name the file, and click the "Add" button. This is now part of your solution and now appears in the "Test > Select Active Test Settings" and "Test > Edit Test Settings" menu items.

If memory serves, the active test settings is stored in the .vsmdi file, not the solution file.
Edit: specifically, it is the "storage" attribute on the RunConfiguration element in the .vsmdi file.

Related

Visual Studio 2012 "Show All Files" button missing

In my solution I have three projects: Console application, class library, and a website project.
The Show All Files button is visible on the console and class library project, but soon as I click on the website project the button disappears.
I am running Visual Studio 2012.
I just got the same problem "Solution Explorer toolbar missing" eg. "Show all files". Here's what I did:
Right click your "Solution".
Select "New Solution Explorer View". This will pop-up a new "Solution Explorer" window with toolbars in it.
Close you original "Solution Explorer" window.
Click on folder which must contain target file and Solution explorer properties will be changed. There you can find Refresh button and Show all files button.
Check this post:
Improved Solution Explorer in Visual Studio 2012 to Improve Productivity
"Show All Files" is not shown in a Web Site Project because it's not needed and all files are already shown in the Solution Explorer. I think that this behavior is the same for older versions of VS
In Solution Explorer, click on a project, and then the 'Show All Files' button will appear.
If you are in a WebSite project all files are shown by default. If there are some missing (added during debugging etc), just hit the refresh button on the top of the solution explorer and they should appear.
None of the above answers worked for me. If this is the case for you try right-clicking on any file in your project, then choosing "Show all files". The "Show all files" icon should now appear on this and all subsequent Solution Explorer windows.
YMMV, be kind. :-)
The "Show All Files" auto hides.
Click on the folder that has the hidden file, the button should show up.
By clicking on the project (the folder under the solution) the solution explore checks if all sub folders has hidden file, this will prompt the button to be revealed.
If you want to get Show all file menu just hide the solution explorer and open it fom view=>Other Windows=>Solution Explorer and clik it it will show all files menu
if you click on solution name in "solution explorer" maybe you will can't see "Show all files" button. because maybe added F# or website project in solution.
if you want see "Show all files" button, you must click on project name which is C# or native C++ or C++.net.
try to open any file use ctrl+alt+a . once a file will open "show all" button will appear automatically.

csproj file in solution explorer

It's possible to set *.csproj file visible in Solution Explorer?
Now I use option "Open containing folder" on file from project and search *.csproj. How can I show it in SE? I use Visual Studio 2010 Premium.
Your *.csproj is the project(s) icons that show up below your solution root. You edit the .csproj right clicking the project icon in solution explorer and select properties. What else would you want?
You need to unload the project from solution. After that you can right click and select edit. There should be an extension somewhere that does this. Try PowerCommands. I believe it adds the conveniens button "Edit Project".

Visual Studio 2010 "Open With..." is missing?

I'm trying to change Visual Studio to open my code instead of designer by default. This question tells me to right click on a file and go to "Open With..."
However, when I try to right click on a file in my solution explorer I have no "Open With..." option. I'm not sure if this is caused by an extension (I have the CodeRush Xpress, VSCommands, Productivity Power tools, and VCS tools for SVN, Git, and Hg), or what, but I would like to be able to configure what my files open with.
Where do I need to go to either get the menu option back or change these settings?
The context menu can be modified. If you haven't heavily customized your command bars and menus then a full reset is wise. Tools + Import/Export, "Reset all settings" radio button.
Or fix the context menu. Tools + Customize, Commands tab, click the "Context menu" radio button. Select the "Project and Solution Context Menu | Item" option from the combobox. Click the Add Command button.
This MSDN link might help you:
How to: Change or Add a Default Editor
It's not the most intuitive method, but from the link:
On the File menu in Visual Studio, choose Open and then select File.
In the Open File dialog box, select a file of the type you want to change.
Still in the Open File dialog box, click the down arrow next to the Open button, and then select Open With.
In the Open With dialog box, choose an editor from the Select a program to open list.
Click the Set as Default button and then click the Open button to open the file.

How do I change the name of an existing project in Visual Studio 2008?

How to change the name of a project in VS 2008 to something else? I have already created a project and now I want to change its name.
Several ways:
Right click the project and select Rename
Select and press F2
Click-wait-click
To change the name of the output assembly you need to right click and select Properties. Change Assembly Name in the Application tab.
To rename your project:
Right-click on the project in the Solution Explorer.
Click "Rename".
Type in your new name, and then press Enter.
To rename the assembly it generates:
Double-click on the "Properties" node for your project in the Solution Explorer.
Change the text in the "Assembly name" textbox.
Right mouse click the project and choose rename.

Undo VS 'Exclude from project'?

Is there a way to undo the 'exclude from project' operation in Visual Studio (2008) ?
How to include files back into the project after excluding them?
Make sure you are showing all files. There is a button at the top of the Solution Explorer called "Show All Files". To see this button, make sure that your project is selected in the solution explorer.
Show All Files
When this option is active, the file should be there, just grayed out. Right click it, and select "Include In Project".
Include In Project
Visual Studio Express 2012
Select Your Project Folder Click On "Show All Files" icon to show all Excluded Folders And Files
Then Right Click on Excluded Folder or File and Click on "Include In Project"
In the absence of an actual undo option you could select Add > Existing Item... to re-add the item you've just excluded.
I couldn't find the "Show All Files" button in Visual Studio 10 when I ran into this problem.
Another way to solve it is to open the containing folder in Windows Explorer by right clicking the folder in Solution Explorer and selecting "Open Folder In Windows Explorer".
Find the folder you want to add back into the project and Drag/Drop it from the Explorer window into your Solution Explorer in Visual Studio.
Add existing will not work if it is a folder that you excluded.

Resources