I have upgraded a C#/net microsoft graph application to use the latest versions of Microsoft.Graph (version 5.52.0) and Microsoft.Graph.Core (3.1.11).
Since then I had to change many references from “Microsoft.Graph” to “Microsoft.Graph.Models”. So far so good.
The problem is now: the type “ErrorDetail” is missing.
using Microsoft.Graph;
using grph = Microsoft.Graph;
using Microsoft.Graph.Models;
using grphMdls = Microsoft.Graph.Models;
....
public grph.ErrorDetail error = null;
....
public grphMdls.ErrorDetail error = null;
....
In VS I get the compile errors:
Error CS0234 The type or namespace name 'ErrorDetail' does not exist in the namespace 'Microsoft.Graph'
Error CS0234 The type or namespace name 'ErrorDetail' does not exist in the namespace 'Microsoft.Graph.Core'
Can anyone help me?
Thanks in advance
Peter
Changing the reference from “Microsoft.Graph” to “Microsoft.Graph.Models” produces the same result.
Peter Schwalm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.