.NET (Mono) 是否支持跨平台文件操作和跨平台音频元数据处理(通过库)?

发布于 2024-07-07 23:06:58 字数 477 浏览 4 评论 0原文

对于我的下一个项目,两个领先者是 .NET 和 Java。 该项目将采用一个包含目录和音乐文件(最初是 MP3,但最终扩展到其他音乐格式)的目录(类似于 Windows 中的“我的音乐”)。 对于每个文件,它允许您播放该文件并查看/编辑其元数据、文件名和位置。

我知道 Java 有用于获取/编辑元数据和文件操作的跨平台支持的库。 我还知道 .NET 有用于处理元数据的库,但我不确定我需要的文件操作。 然而,我真的很想重新回到 .NET,特别是因为我想将它保留在我的简历中,但自 .NET 2.0 以来我就没有使用过它(现在是 3.5?),如果我不这样做的话跟上它,把它放在我的简历中是没有意义的,因为我无法回答有关该技术新版本的任何问题。

最初,Windows 是我唯一关心的,但我想将其作为跨平台应用程序发布。

注意:我确实知道我正在重新发明轮子,但这是我遇到的一个问题,我认为解决它会很有趣。 它处理许多问题,从 UI 问题到文件结构管理到外部库等等。

For my next project, the two leading frontrunners are .NET and Java. The project is to take a directory (something like My Music in Windows) that contains directories and music files (MP3s initially, but eventually expanded to other music formats). For each file, it would allow you to play the file and view/edit its metadata, filename, and location.

I know that Java has libraries for both getting/editing metadata and cross-platform support for file operations. I also know that .NET has libraries for dealing with the metadata, but I'm not sure about the file operations I need. However, I really want to get back into .NET, especially since I want to keep it on my resume, but I haven't used it since .NET 2.0 (and it's, what, 3.5 now?) and if I don't keep up with it, there's no point in putting it on my resume since I couldn't answer any questions about new versions of the technology.

Initially, Windows is my only concern, but I would like to release this as a cross-platform application.

Note: I do know that I'm reinventing the wheel, but this is a problem that I've encountered and I think it would be kind of fun to solve. It deals with a number of problems, from UI concerns to file structure management to external libraries and more.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

芸娘子的小脾气 2024-07-14 23:06:59

Mono 关于本主题第一部分的官方页面是 IOMap

Mono 现在有一个可移植层
Mono 将解决这些问题
无需更改您的
代码。 这将删除一个大
移植周期的组成部分
整类令人讨厌的问题是
走了。

新的可移植性框架是
通过设置环境启用
变量 MONO_IOMAP (我们将
可能会重命名为更短的名称)
以下值之一:

  • 大小写:使所有文件系统访问不区分大小写。
  • 驱动器:从路径名中删除驱动器名称。
  • 全部:同时启用机箱和驱动器。

此外,如果其中任何一个选项
已启用,目录分隔符
映射也已打开。

此功能自 1.1.18 起包含。

The official page from mono on the first part of this topic is IOMap.

Mono now has a portability layer into
Mono that will address those problems
without requiring changes to your
code. This will remove a large
component of the porting cycle as a
whole class of obnoxious problems are
gone.

The new portability framework is
enabled by setting the environment
variable MONO_IOMAP (which we will
likely rename to something shorter) to
one of the following values:

  • case: makes all file system access case insensitive.
  • drive: strips drive name from pathnames.
  • all: enables both case and drive.

In addition, if any of those options
are enabled, the directory separator
mapping is also turned on.

This functionality is included since 1.1.18.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文