There are so many different reasons of getting this generic error. My particular use case is impacted by gitignore file. The project is configured to use package configuration and the lib (dll) were ignored in gitignore file.
I had a working solution on my local. I commited this solution to ADO main. I went to ADO and created a working branch from main branch. I open working branch and started getting these yellow triangles.
I decided to use MVC package as a test case. These are working solution lib files;
These are not working solution lib files (branch created from main).
You can see “System.Web.Mvc.dll” is missing in second picture.
How did I fix it?
The simplest way is to go to main branch in ADO and delete packages folder;
Clone the repository locally
Make the changes to the local version
Commit the changes locally
Push the changes back up to the GitHub repository
Goto each file and select Git and Add;
The folder will be back in the view;
Make sure to comment this line in gitignore file;
# NuGet Packages
# The packages folder can be ignored because of Package Restore
# SHAHZAD - Don't uncomment this line
# except build/, which is used as an MSBuild target.
# Uncomment if necessary however generally it will be regenerated when needed
# NuGet v3's project.json files produces more ignoreable files
Switch to some other branch and delete Test_Branch, as follows:
$ git checkout master
$ git branch -d Test_Branch
If above command gives you error – The branch 'Test_Branch' is not fully merged. If you are sure you want to delete it and still you want to delete it, then you can force delete it using -D instead of -d, as:
$ git branch -D Test_Branch
To delete Test_Branch from remote as well, execute:
One of my developer started getting Git Credential Manager for windows popup and received Authentication failure message. The work around was;
Check the Git for Windows in the Tools – Get Tools and Features…), go to “Individual Item” tab, check “Git for Windows”, and click “Modify”. Then it will ask you to update vs2017 to latest version, for example 15.9.36.