how to fix "Could not load file or assembly"

The_reaper 0 Reputation points
2023-10-13T23:18:58.41+00:00

The full error is this I also have a photo attached
Could not load file or assembly

'Microsoft.DotNet.TemplateLocator, Version=5.0.100.0,

Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified.

User's image

Developer technologies .NET Other
Developer technologies Visual Studio Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-10-16T03:30:04.1033333+00:00

    Hi @The_reaper

    Welcome to Microsoft Q&A! 

    Could you tell me how you encountered this situation? Which version of Visual Studio are you using? 

    Please update your VS to the latest version with Visual Studio Installer. And try to repair it in the Visual Studio Installer > More > Repair.

    Then, run it as administrator and check it again. 

    If it occurs in specific project, please check if you have the ‘Microsoft.DotNet.TemplateLocator’ assembly referenced in your project or not.

    And ensure the assembly version is 5.0.100.0. 

    If it persists, please share us more details in order to investigate it further. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.