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?
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.
To create a property sheetOn the menu bar, choose View > Property Manager or View > Other Windows > Property Manager.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With