简体   繁体   English

Visual Studio 2019 for Mac:还原或添加 Nuget 包时出错

[英]Visual Studio 2019 for Mac: Error when restoring or adding Nuget packages

I have a problem with adding and restoring nuget packages in Visual Studio 2019 for Mac.我在 Visual Studio 2019 for Mac 中添加和恢复 nuget 包时遇到问题。 When I try to add a package, I get an error like this:当我尝试添加包时,出现如下错误:

Getting restore information for project /Users/maksym/Desktop/Projects/klosterfrau/Klosterfrau/Klosterfrau.csproj
Getting restore information for project /Users/maksym/Desktop/Projects/klosterfrau/Klosterfrau.iOS/Klosterfrau.iOS.csproj
Getting restore information for project /Users/maksym/Desktop/Projects/klosterfrau/Klosterfrau.Android/Klosterfrau.Android.csproj
Object reference not set to an instance of an object

And the same error when I try to restore packages.当我尝试恢复包时出现同样的错误。 But project builds just fine (Xamarin, by the way).但是项目构建得很好(顺便说一句,Xamarin)。 Rider fro JetBrains adds them just fine, but I don't like that there build takes twice as long, so I prefer Visual Studio. Rider fro JetBrains 很好地添加了它们,但我不喜欢构建需要两倍的时间,所以我更喜欢 Visual Studio。 I tried to google my issue, but IDE is very new and I found nothing.我试图用谷歌搜索我的问题,但 IDE 非常新,我一无所获。 Thanks谢谢

For anyone wondering - I reported this issue to Microsoft and they responded that this is a known bug, and I just needed to install Android SDK.对于任何想知道的人——我向微软报告了这个问题,他们回复说这是一个已知的错误,我只需要安装 Android SDK。 They are going to fix that issue in the future, but for now I installed the SDK and everything works fine他们将来会解决这个问题,但现在我安装了 SDK,一切正常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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