Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3116

Build error in Tokenhelper.cs after get latest from TFS(azure-devops) in VS2019

$
0
0

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.

enter image description here

As you can see there are two kind of errors.

  1. Metadata file '.dll' could not be found.
  2. In every projectTokenHelper.cs and SharePointContext.cs is having error, it'snot able to find Microsoft.IdentityModel package.

In the same .cs file I see VS is complaining about missing assembly reference for Microsoft.IdentityModel. Why is it so?

enter image description here

What I have tried to solve this?

  1. Have deleted packages folder so that VS can restore the packages back, but this didn't resolve the issue.
  2. 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.
  3. Several time did clean and rebuild solution but to no avail.

What I didn't try

  1. 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?


Viewing all articles
Browse latest Browse all 3116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>