且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在visual studio中添加依赖项

更新时间:2023-02-21 09:36:06

嗨Mortalty,


欢迎来到MSDN论坛。


请参阅你的描述,我想你看的是Android Studio的错误指南,而不是Visual Studio。


据我所知,Android Studio使用build.gradle来添加依赖项。在Visual Studio中,我们可以右键单击解决方案/项目名称并选择"管理
Nuget包
..."并在"浏览"选项卡下搜索使用相关关键字,然后选择要安装的关键字。


如果你想绑定一个java库,请查看这个文档:
  绑定Java库


由于我们的论坛是讨论VS IDE,有关更多详细的开发问题,请重定向到这个适当的论坛:
https://forums.xamarin.com/ 寻求更好的支持,感谢您的理解。




***的问候,


萨拉跨度>


I'm new to android and i'm developing an app in visual studio, and i'm trying to use a Calendar Library.

in the Installation part they're telling me to add a dependency in my build.gradle

And i believe that build.gradle is in xamarin studio

Anyone knows how i can do that in visual studio?

Also every other library i looked at had the same Installation steps
any help is appreciated

Hi Mortalty,

Welcome to the MSDN forum.

Refer to your description, I suppose you are looking the wrong guide for the Android Studio, not for the Visual Studio.

As far as I know, the Android Studio used the build.gradle to add dependency. In Visual Studio, we can right click the solution/project name and choose "Manage Nuget Packages…" and under Browse tab, search with the related keyword, then choose the right one to install.

If you want to binding a java library, please check this document:  Binding a Java Library

Since our forum is to discuss the VS IDE, for more detail development issues, please redirect to this appropriate forum: https://forums.xamarin.com/ to seek for a better support, thank you for your understanding.

Best regards,

Sara