Open atifaziz opened 8 years ago
Yes it would be great to have it and run it an automation build
Currently, LicenseHeaderManager uses the Visual Studio APIs to identify the projects and which license file to apply. This entire set (including folder-nesting, linked files, and possible future features) would have to be built upon the msbuild project system instead. This would definitely be a significant engineering effort and also require extra effort when building future feature. I'm not sure this is feasible.
Maybe (big maybe and only for Roslyn-based projects), there is a way to utilize Roslyn for this.
What we (probably) could support is to extract the individual file append-logic into a class library and host that on nuget. Then a commandline tool could be built based on this.
A command-line version that applies (and possibly also generate the
.licenseheader
) the header to all files in a project or solution would be a very welcomed addition. In fact, ideally, the extension would invoke the command-line version behind the scenes and display the output to the result pane in Visual Studio. It would also enable maximum code reuse and behavior parity between the extension and the command-line version.