问题
I've installed the Microsoft.Identity.Client in Visual Studio and can now declare using Microsoft.Identity.Client;
within the code. Visual Studio is happy. Unity, however, is not.
Assets\Scripts\AutoKhan.cs(8,17): error CS0234: The type or namespace name 'Identity' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
What must I do to make Unity similarly happy?
回答1:
I have run into similar issues when using external libraries. Often there is a dll to add to your project because of how Unity compiles your project.
This may be useful. How to use an external dll
来源:https://stackoverflow.com/questions/62223096/visual-studio-understands-but-unity-doesnt