How to add information about the user who compiled the project into the AssemblyDescription attribute in Visual Studio 2008?

The problem is not much more than the title that I'm afraid of.

I have a Visual Studio 2010 solution in which many people work and deploy, and I need to add the details of the person who compiled this particular version of the assembly to the AssemblyInfo.cs file, in particular the AssemblyDescription attribute.

Any ideas how to do this?

+4
source share
1 answer

Add a Pre-build event that overwrites the AssemblyInfo.cs file.

You can even add a second file called PersonDetails.cs , which you did not put in the original control (i.e. in the ignore list), in which you just placed the face details.

The build event will be a small application that you write that gets the username from, for example. Windows credentials and places them in a C # file.

+2
source

Source: https://habr.com/ru/post/1338236/


All Articles