microsoftgraph / msgraph-sdk-dotnet-auth

Archived - use the TokenCredential classes provided by Azure.Identity. https://docs.microsoft.com/en-us/dotnet/api/overview/azure/identity-readme
https://graph.microsoft.com
MIT License
78 stars 19 forks source link

Getting Build Error: Unable to parse version value '1.0.0-preview.5' from 'packages.config After Adding Microsoft.Graph.Auth #76

Closed shwork96 closed 4 years ago

shwork96 commented 4 years ago

I'm adding some code to access Graph to an ASP.net MVC project. When I add the latest Microsoft.Graph.Auth package from Nuget I get the following error when I build:

Error Unable to parse version value '1.0.0-preview.5' from 'packages.config'.

The other graph libraries work fine. I've used the auth package just fine in another mvc core project. I'm using VS 2019 Enterprise.

MIchaelMainer commented 4 years ago

Please try upgrading to a Nuget.exe version to greater than 4.3. Answered from https://stackoverflow.com/questions/58804537/visual-studio-2019-unable-to-parse-version-value-1-0-0-preview2-from-packages, please up vote if it helps.

gallettoNL commented 3 years ago

I have the same issue. I don't have a Nuget.exe on my system, it's incorporated in VS2019 (latest version), I believe, so why does this error occur, an how to solve it?