所以我一直在玩添加对某些.dll文件的本地引用。有一点在构建我,为了好奇而改变它以支持.Net标准平台。然后,这包括Xamarin.Forms作为参考,我需要它。所以我回过头来。但是现在当它试图恢复Xamarin.Forms作为参考时,它会尝试查找我包含的引用并失败。由于这种失败,它不包含我的自定义引用,但它不包括Xamarin.Forms。
Running non-parallel restore.
Reading project file /Users/*****/Projects/Goal_1.02/Goal_1.02/Goal_1.02.csproj.
Restoring packages for /Users/*****/Projects/Goal_1.02/Goal_1.02/project.json...
Restoring packages for .NETPortable,Version=v4.5,Profile=Profile111...
GET https://github.com/gstreamer-sharp/gstreamer-sharp.git/FindPackagesById()?id='Xamarin.Forms'
GET https://api.nuget.org/v3-flatcontainer/xamarin.forms/index.json
NotFound https://github.com/gstreamer-sharp/gstreamer-sharp.git/FindPackagesById()?id='Xamarin.Forms' 295ms
Retrying 'FindPackagesByIdAsyncCore' for source 'https://github.com/gstreamer-sharp/gstreamer-sharp.git/FindPackagesById()?id='Xamarin.Forms''.
404 (Not Found)
GET https://github.com/gstreamer-sharp/gstreamer-sharp.git/FindPackagesById()?id='Xamarin.Forms'
NotFound https://github.com/gstreamer-sharp/gstreamer-sharp.git/FindPackagesById()?id='Xamarin.Forms' 250ms
Retrying 'FindPackagesByIdAsyncCore' for source 'https://github.com/gstreamer-sharp/gstreamer-sharp.git/FindPackagesById()?id='Xamarin.Forms''.
404 (Not Found)
GET https://github.com/gstreamer-sharp/gstreamer-sharp.git/FindPackagesById()?id='Xamarin.Forms'
OK https://api.nuget.org/v3-flatcontainer/xamarin.forms/index.json 313ms
GET https://api.nuget.org/v3-flatcontainer/xamarin.forms/2.3.4.231/xamarin.forms.2.3.4.231.nupkg
OK https://api.nuget.org/v3-flatcontainer/xamarin.forms/2.3.4.231/xamarin.forms.2.3.4.231.nupkg 124ms
NotFound https://github.com/gstreamer-sharp/gstreamer-sharp.git/FindPackagesById()?id='Xamarin.Forms' 342ms
Failed to retrieve information about 'Xamarin.Forms' from remote source 'https://github.com/gstreamer-sharp/gstreamer-sharp.git/FindPackagesById()?id='Xamarin.Forms''.
答案 0 :(得分:0)
我觉得发布这个有点愚蠢。但对于那些发现这个寻找答案的人来说。在Visual Studio for Mac中,您可以在
下找到源选项卡Visual Studio - >偏好 - >来源
您可以选择不包含的麻烦来源