Alex Rivera | Logout

Reusable PropertyGroup elements in a csproj file

Asked 2012-02-22T18:27:17.370
32

I have a series of properties I need to set in ~15 projects. Is there a way to put these properties in a single file and have all the project files reference the one file using some sort of import directive rather than duplicating the properties in each project file?

EDIT: To clarify, I'm talking about <PropertyGroup> elements within the csproj file. All the projects need the same series of <PropertyGroup> settings. These elements set properties like DebugSymbols or DefineDebug, and are not used for referencing source files.

Edit
Report

1 Answer

3

You can create a shared MSBuild file that can be imported by all projects.

This post discusses this solution and demonstrate it here

answered 2012-02-22T18:37:25.257

Your Answer