views:

148

answers:

2

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.

+1  A: 

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.

Dean Harding
OK, but where do I specify a `.props` file? There is still no *Inherited Project Property Sheets* property visible. Does VS hide this property by default? Is there a way to enable it?
jwfearn
Dean Harding
+1  A: 

That hasn't changed. 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 use 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 to your View menu.

It's odd that it is missing of course, could have happened when you installed VS2010 and it imported your VS2008 settings. 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.

Hans Passant
Perhaps I'm missing something but I see *View | Other Windows | Properties Window* (but nothing named *Property Manager*). If this is what you meant, I still don't see any way to include a `.props` file.
jwfearn
@jwfearn: post updated.
Hans Passant
@Hans, thanks for your help, but neither customizing or resetting has revealed *Property Manager* anywhere. I'm still using Visual Studio 2010 RC1 so perhaps this feature was disabled and only turned on in the shipping version.
jwfearn
@Hans, D'oh! I found *Property Manager*, it's at the top level of the *View* menu. Now your instructions make sense. Thanks again!
jwfearn