_._ 文件在 nuget 包中意味着什么?

What do _._ files mean in nuget packages?

在查看 Nuget 包的内容时,我发现了以下名为的文件:

_._

如下图所示:

这个文件在 nuget 包中是什么意思或做什么?

它们是表示空目录的占位符文件。 空目录在 ZIP 中通常得不到很好的支持,因此将具有该名称的文件放在其中以确保创建目录。

来自this link

They are placeholder files to denote an empty directory. Empty directories are often not well-supported in ZIPs so a file with that name is placed in there to ensure the directory is created.

This is important because the existence of an "empty" net46 folder means that the package supports .NET Framework 4.6, but does not require any assemblies (DLLs) in order to run on that version of .NET. This is most likely because the implementation of the package is in the GAC.