I have a solution in visual studio 2017 which is connected and hosted to azure devops. This is a completely working solution. However When today morning I downloaded and got latest that in another machine where I have visual studio 2019 I started getting several issues and failure on build.
As you can see there are two kind of errors.
- Metadata file '.dll' could not be found.
- In every project
TokenHelper.cs
andSharePointContext.cs
is having error, it'snot able to findMicrosoft.IdentityModel
package.
In the same .cs file I see VS is complaining about missing assembly reference for Microsoft.IdentityModel
. Why is it so?
What I have tried to solve this?
- Have deleted packages folder so that VS can restore the packages back, but this didn't resolve the issue.
- Have also cleared nuget cache from Nuget Package Manager settings -> Clear all Nuget Cache(s), also via
nuget.exe locals -clear all
but yielded no result. - Several time did clean and rebuild solution but to no avail.
What I didn't try
- I have not deleted .nuget folder from solution thinking that it might not help after exhausting above tries.
I have also ensured that Office dev tool is installed as part of VS installer on my machine , I see all sharepoint related templates in new project template screen.
What could be the cause of this?