简体   繁体   中英

How can i Arrange app dll files in dot net Core

I built an application in dotnet core 3.1 and after build i see in bin folder Lots of dlls and xmls here screen shotdll地狱

And I want it to look like this在此处输入图像描述

someone can please help me:-((((

In .net framework you can use AssemblyBinding probing in app.exe.config and use Post Build Events Command Line in Visual Studio to move your dll and xml in the custom folder.

In .net core 3.1 additionalProbingPaths seems doesn't work fine but you can still use Post Build Events Command Line to move your xml in the custom folder.

Note:
1. AssemblyBinding probing and additionalProbingPaths will affect your assembly load dll location.
2. If you don't know Post Build Events Command Line see the guide line .

See the below issues about probing path.
Additional probing paths for .NET Core 3 migration
donet/sdk issue .

Finally I found nulastudio.NetCoreBeauty library which seems like you want feature.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM