最佳答案
在 .net 框架中,您可以使用 AssemblyBinding probing
在 app.exe.config 中并使用 Post Build Events Command Line
在 Visual Studio 中移动自定义文件夹中的 dll 和 xml。
在 .net 核心 3.1 additionalProbingPaths
似乎不能正常工作,但您仍然可以使用 Post Build Events Command Line
将您的 xml 移动到自定义文件夹中。
注:1。 AssemblyBinding probing
和 additionalProbingPaths
会影响你的程序集加载dll location.2。如果您不知道 Post Build Events Command Line
见 the guide line .
请参阅以下有关探测路径的问题。
Additional probing paths for .NET Core 3 migration
donet/sdk issue .
终于找到nulastudio.NetCoreBeauty库,这似乎是您想要的功能。
关于c# - 我如何在 dot net Core 中排列应用程序 dll 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63063996/