Search for Visual Studio utility for managing the “license block” in all project source files

I was asked to add a block of text to each source file of an existing project, which will contain a short copyright notice and a link to the main license file.

Do you know any VS utilities or individual applications that can do this?

Ideally, I would like to be able to run this several times so that it updates any existing license block.

I am using VS2008 and most of them are C #

Thank you, Canis.

+4
source share
1 answer

Is it necessary to check the copyright notice in the source control or just be accessible if the code is encrypted? If you only need this when the code is packed, you can use a placeholder at the top of your files, something like

// -- LICENSE INFO HERE -- 

Later, you can use the batch file, msbuild or powershell to replace all instances with your specific license text immediately before committing the code.

+1
source

All Articles