Xamarin:.Net Framework子集在哪里? [英] Xamarin: Where is .Net Framework subset?

查看:90
本文介绍了Xamarin:.Net Framework子集在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Xamarin,但是当我想添加新的引用时,我看不到.Net Framework。



Xamarin移植了.Net Framework的子集,我想得到它并使用。

我在Xamarin的网站上看到它,它被称为基类库:

http://api.xamarin.com/ [ ^ ]



那么,如何在我的新项目中使用基类库?

解决方案

< blockquote>请参阅: http://en.wikipedia.org/wiki/List_of_data_types_of_the_Standard_Libraries#Base_Class_Library



您可以像使用BCL课程一样使用BCL课程它在.NET中:您通过强名称引用程序集,假设此程序集放在GAC中( http://en.wikipedia.org/wiki/Global_Assembly_Cache )。



完成后,通过全名可以访问程序集代码访问级别程序集类型,您可以使用使用声明缩短使用时间(不要与使用语句。



基本上,程序集名称在适当的构建工具的命令行中引用。如果您使用Xamarin Studio,请参阅 http://developer.xamarin.com/guides/cross-platform/getting_started/introducing_xamarin_studio ,装配参考部分。顺便说一句,它在不同的IDE中看起来完全相同:Visual Studio,SharpDevelop,MonoDevelop。



-SA


只需注意,Xamarin也可以在Visual Studio中工作 - 请查看 - http://xamarin.com/visual-studio [ ^ ]。


下一页显示Android的API:

http://androidapi.xamarin.com/ [ ^ ]

它首先显示基类库(BCL),但它是不包含在API中。

您只能使用BCL之后看到的内容,除BCL外,您可以使用列表中的所有内容。

BCL是所有使用的API所有3个平台,它是一个.Net Framework的子集。


I have installed Xamarin just now, but when i wanna add new references, i see no .Net Framework.

Xamarin ported a subset of .Net Framework, i wanna get it and use.
I see it on the Xamarin's website, it is called "Base Class Library":
http://api.xamarin.com/[^]

So, how can use Base Class Library in my new project?

解决方案

Please see: http://en.wikipedia.org/wiki/List_of_data_types_of_the_Standard_Libraries#Base_Class_Library.

You can use BCL classes the same way as you do it in .NET: you reference the assembly by its strong name, assuming that this assembly is placed in GAC (http://en.wikipedia.org/wiki/Global_Assembly_Cache).

After you do it, top-level assembly types become accessible to your assembly code by full names, which you can shorten in use using using declarations (not to be mixed up with using statements).

Basically, the assembly name is referenced in a command line of appropriate build tools. If you use Xamarin Studio, please see http://developer.xamarin.com/guides/cross-platform/getting_started/introducing_xamarin_studio, the section "Assembly References". By the way, it looks exactly the same in different IDE: Visual Studio, SharpDevelop, MonoDevelop.

—SA


Just a note, Xamarin can also work from within Visual Studio - check this out - http://xamarin.com/visual-studio[^].


The next page shows API for Android:
http://androidapi.xamarin.com/[^]
It shows Base Class Library (BCL) first, but it is not included into the API.
You can use only what you see after BCL, you can use everything out the list in exception of BCL.
BCL is all APIs used by all 3 platforms and it is a subset of .Net Framework.


这篇关于Xamarin:.Net Framework子集在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆