I have a solution with over 30 projects in it… Is there a quick and easy way of managing the build revision of all projects rather than editing the AssemblyInfo or Properties of each one?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In the past, I’ve followed the advice in this article to create a SharedAssemblyInfo.cs file at the solution level and linked to it from each of my projects.
The main point is that you want to add the SharedAssemblyInfo.cs file to your projects as a link. In Visual Studio, you would choose “Add Existing Item”, but in the dialog, click the arrow on the Add button and select “Add As Link”.
In SharedAssemblyInfo.cs, put any assembly attributes that you want to be the same across all projects. The article recommends the following:
AssemblyCompanyAssemblyProductAssemblyCopyrightAssemblyTrademarkAssemblyConfigurationAssemblyDescriptionCLSCompliantComVisibleAssemblyVersionAssemblyInformationalVersionEach project will still have its own AssemblyInfo.cs file as well to supplement the attribute it receives from the shared file:
AssemblyTitleAssemblyCultureGuid