rubicon-oss / LicenseHeaderManager

Manage license headers for your source code files in Visual Studio
179 stars 41 forks source link

Error: 'Add LicenseHeader to all files in solution failed with the exception #143

Closed NJ261 closed 3 years ago

NJ261 commented 3 years ago

I'm trying to apply the license header to whole whole project via sln file. But I'm seeing the following issue Add LicenseHeader to all files in solution failed with the exception 'Due to high risk of deadlock you cannot call GetService from a background thread in an AsyncPackage derived class.

github-issue

I'm using following license header file and visual studio is also up to date.

extensions: designer.cs generated.cs
extensions: .cs .cpp .h
/* 
  Copyright %CurrentYear% ABCD 
*/

extensions: .ps1 .psm1
<#
  Copyright %CurrentYear% ABCD 
 #>

Also, is there a way to use this tool via cmd or powershell? Any suggestions? Thanks!

NJ261 commented 3 years ago

duplicate of this issue #116