Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Property Sheets in C#

I'm using VS2005 and I have a property sheet (vsprops file) that I'm adding to all the C++ projects but I can't seem to find out how to add them to the C# projects. How do I go about doing this?

like image 408
Graham Avatar asked Sep 02 '10 18:09

Graham


People also ask

What are property sheets?

A property sheet is a window that allows the user to view and edit the properties of an item. For example, a spreadsheet application can use a property sheet to allow the user to set the font and border properties of a cell or to view and set the properties of a device, such as a disk drive, printer, or mouse.

How do you create a property sheet?

To create a property sheetOn the menu bar, choose View > Property Manager or View > Other Windows > Property Manager.

How do you create a property sheet in MFC?

Step 1 − Right-click on your project and select Add > Class menu options. Step 2 − Select Visual C++ → MFC from the left pane and MFC Class in the template pane and click Add. Step 3 − Enter the class name and select CPropertySheet from base class dropdown list. Step 4 − Click finish to continue.


1 Answers

Although there is no exact equivalent of property sheets in C#, there is at least one easy way to accomplish what you want: csproj files can import other project files, so you can have a common project file that only defines the output path.

It's all been covered already: How to set the output path of several visual C# projects.

like image 194
John T Avatar answered Sep 28 '22 01:09

John T