Property Sheets in C #

I am using VS2005 and I have a property sheet (vsprops file) that I am adding to all C ++ projects, but I cannot figure out how to add them to C # projects. How can I do it?

+6
c # visual-studio visual-studio-2005
source share
3 answers

Although there is no exact equivalent of property listings in C #, there is at least one simple 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.

Everything has already been considered: How to set the exit path for several visual C # projects .

+6
source share

The project properties sheet is a detail of the implementation of the C ++ IDE. There is no equivalent for the C # IDE. Mostly because there are so few buttons to configure. Compared to C and C ++, the compiler and linker, which have that, more than 100 options. A managed code method is to use [attributes].

Project + Properties to change C # settings. Rejoice in the sparseness. In fact, changing any of them is quite rare, the project template will take care of them if necessary.

+2
source share

I know this is an old question, but still ... Just edit the project file manually and add the <import> section to use the property sheet:

 <Project ...> <Import Project="$(SolutionDir)\Local.props" /> </Project> 

No need to have a real project file to import.

+2
source share

All Articles