Cannot load relative line numbers in Visual Studio 2017 enterprise

After installing extension relative line numbers in Visual Studio 2017 success, I opened a new project and found that the relative line number plugin is not loaded correcly.
Open logs in ActivityLog.xml I saw following error

 
You can fix this issue by reference this with a little revision

  • Launch “Developer Command Prompt for VS 2017” as Administrator
  • Go to VS 2017 installation folder cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
  • gacutil -if Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.Shell.Interop.dll

 
key point is last line, Microsoft.VisualStudio.Shell.Interop.[8|11|12].0.dll won't work for me.

Hope this helps, happy coding 🙂

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *