为什么dotnet build on ubuntu会输出一个dll文件?
Why does dotnet build on ubuntu output a dll file?
我有一个很简单的问题。当我在 ubuntu 中的 c# 项目上使用 donet build
时,它会输出一个 .dll
文件。我想知道为什么或如何这样做,为什么不输出 .so
文件?
.NET Core 使用它自己的文件系统,该文件系统必须 运行 具有特定命令才能 运行 应用程序。
(It) relies on the presence of a shared system-wide version of .NET Core on the target system
至运行您输入的应用程序
dotnet {FileName}.dll
这将启动 运行使用 .NET Core 框架的应用程序。
Your app contains only its own code and any third-party dependencies
that are outside of the .NET Core libraries. FDDs contain .dll files
that can be launched by using the dotnet utility from the command
line. For example, dotnet app.dll runs an application named app.
因为 .NET Core(以及整个 .NET)即使在其他平台上也使用可移植可执行文件格式,所以它在技术上仍然是一个动态 link 库。
.NET Core 运行-time loader 可以读取并且运行没问题。
您可以在此处阅读更多内容 - .NET assembily file format
我有一个很简单的问题。当我在 ubuntu 中的 c# 项目上使用 donet build
时,它会输出一个 .dll
文件。我想知道为什么或如何这样做,为什么不输出 .so
文件?
.NET Core 使用它自己的文件系统,该文件系统必须 运行 具有特定命令才能 运行 应用程序。
(It) relies on the presence of a shared system-wide version of .NET Core on the target system
至运行您输入的应用程序
dotnet {FileName}.dll
这将启动 运行使用 .NET Core 框架的应用程序。
Your app contains only its own code and any third-party dependencies that are outside of the .NET Core libraries. FDDs contain .dll files that can be launched by using the dotnet utility from the command line. For example, dotnet app.dll runs an application named app.
因为 .NET Core(以及整个 .NET)即使在其他平台上也使用可移植可执行文件格式,所以它在技术上仍然是一个动态 link 库。
.NET Core 运行-time loader 可以读取并且运行没问题。
您可以在此处阅读更多内容 - .NET assembily file format