C# 将根目录下的类库放到文件夹中
有时候应用程序引用的类库太多了,每次去找可执行文件都得翻半天,感觉很麻烦,
实际上C#可以把dll放到文件夹中,只需要配置下配置文件
<configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="bin;bin2\subbin;bin3"/> </assemblyBinding> </runtime> </configuration>
这样就可以把类库放到bin,bin2\subin,bin3中了
https://learn.microsoft.com/zh-cn/dotnet/framework/configure-apps/specify-assembly-location