简体   繁体   中英

I have installed the package Microsoft.Graph.Beta in visual studio but can't import it

When i import the package using

using Microsoft.Graph.Beta;

It shows:

CS0234 the type or namespace Beta does not exist in the namespace 'Microsoft.Graph' (are you missing an assembly reference)

Proof that i have installed the package correctly..

在此处输入图片说明

Although the package is called Microsoft.Graph.Beta , the root namespace of the assembly is Microsoft.Graph . The suffix just indicates that it is the beta package and not the Microsoft.Graph NuGet package. From the GitHub page (v1.0 is Microsoft.Graph ):

Both the v1.0 and beta Microsoft Graph endpoints share the same namespace.

Consequently, you can use the Microsoft.Graph namespace.

using Microsoft.Graph;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM