Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GUI to include a .prop file in a VS 2010 project?

Visual Studio 2010 has no longer uses .vsprops files and instead uses .props files.

To include a .vsprops file in a Visual Studio 2008 project, one could right-click the project icon in the Solution Explorer panel, choose Properties, go to the Configuration Properties | General section, and modify the Inherited Project Property Sheets property to contain a list of .vsprops paths. One could also modify the Visual Studio 2008 project file directly.

Is there a way in the Visual Studio 2010 GUI to include .props files in a project? The Inherited Project Property Sheets property seems to have been removed. If manual editing of the project file is the only way to include .props files, where can one find documentation on doing it?

I'm not talking about adding a .props file to the list of files in the project, I mean how do I tell the project to use a .props file.

like image 628
jwfearn Avatar asked Jun 06 '10 21:06

jwfearn


People also ask

How do you enter project properties in Visual Studio code?

You access project properties by right-clicking the project node in Solution Explorer and choosing Properties, or by typing properties into the search box on the menu bar and choosing Properties Window from the results.

How do I open property pages in Visual Studio?

To open the Property Pages, choose Project > Properties from the main menu, or right-click on the project node in Solution Explorer and choose Properties. Individual files also have property pages that enable you to set compile and build options for just that file.


2 Answers

That hasn't changed. Use View > Other Windows > Property Manager. Navigate the tree view there and open the configuration you want to change. Right-click > Add New.


If you don't see this menu option then you can repair the menu with Tools > Customize, Commands tab. Select "View" and click Add Command. Select "View" in the left listbox, "Property Manager" in the right one. That adds the command back to your View menu.

It is odd that it is missing of course, could have happened when you installed VS2010 and it imported your VS2008 settings. This feature is not flawless, judging from other programmers' questions about it, beware that you might be missing out on other menu items. If you haven't customized anything extensively then Tools > Import and Export Settings, Reset might be a good idea.

like image 83
Hans Passant Avatar answered Oct 05 '22 01:10

Hans Passant


You can go to View -> Other Windows -> Property Manager to open up the list of property sheets and so on. This works in both VS 2008 & 2010.

like image 28
Dean Harding Avatar answered Oct 05 '22 01:10

Dean Harding