简体   繁体   English

仍然需要 MvvmCross 文件插件?

[英]MvvmCross file plugin still required?

Regarding the file plugin (OS independent file system access) for MvvmCross :关于MvvmCross文件插件(独立于操作系统的文件系统访问):

  • Do I understand correctly that this plugin was created at a time when file system access wasn't yet possible using .NET standard ?我是否正确理解该插件是在使用.NET 标准无法访问文件系统时创建的?

  • Meaning for new projects there's no reason to use the file plugin and I can use .NET standard without any drawbacks?对于新项目来说,没有理由使用文件插件,我可以使用 .NET 标准而没有任何缺点吗?

Do I understand correctly that this plugin was created at a time when file system access wasn't yet possible using .NET standard?我是否正确理解该插件是在使用 .NET 标准无法访问文件系统时创建的?

No, MvvmCross is a cross-platform MVVM framework.不,MvvmCross 是一个跨平台的 MVVM 框架。

Among the features MvvmCross provides are: MvvmCross 提供的功能包括:

  • ViewModel to View bindings using own customizable binding engine, which allows you to create own binding definitions for own custom views ViewModel 到 View 绑定使用自己的可定制绑定引擎,它允许您为自己的自定义视图创建自己的绑定定义
  • ViewModel to ViewModel navigation, helps you share behavior on how and when to navigate ViewModel 到 ViewModel 导航,帮助您分享有关如何以及何时导航的行为
  • Inversion of Control through Dependency Injection and Property Injection通过依赖注入和属性注入实现控制反转
  • Plugin framework, which lets you plug-in cool stuff like GPS Location, Localization, Sensors, Binding Extensions and a huge selection of 3rd party community plug-ins插件框架,可让您插入很酷的东西,如 GPS 位置、本地化、传感器、绑定扩展和大量第三方社区插件

For more details, you could refer to the link.有关更多详细信息,您可以参考链接。 https://github.com/MvvmCross/MvvmCross-Samples https://github.com/MvvmCross/MvvmCross-Samples

Meaning for new projects there's no reason to use the file plugin and I can use .NET standard without any drawbacks?对于新项目来说,没有理由使用文件插件,我可以使用 .NET 标准而没有任何缺点吗?

Plugins have advantages for framework, but implementing direct in the UI projects is perfectly acceptable too.插件在框架方面具有优势,但直接在 UI 项目中实现也是完全可以接受的。

The MvvmCross.Plugins.File plugin was created back when we had Portable class libraries and didn't have any profile that had any System.File.IO namespaces available to us. MvvmCross.Plugins.File 插件是在我们拥有便携式 class 库并且没有任何配置文件具有任何可供我们使用的System.File.IO命名空间时创建的。

So with the introduction with .NET Standard, most of what it does has become obsolete.因此,随着 .NET 标准的推出,它所做的大部分工作都已过时。 So you are right to say that for new projects, you could get away without having to use this plugin at all, because all of the API is available to you in .NET Standard.所以你说的对,对于新项目,你可以完全不用这个插件就可以逃脱,因为所有的 API 都可以在 .NET 标准中使用。

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

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