Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
Building a .net core self contained app produces a lot of files in the same folder, is there a way to separate "system files" i.e. the dotnet core files and put them in a "bin" folder from my app's DLL files?

What I have tried:

Messed around with the files, but the EXE complains there are missing files and won't run.
Posted
Updated 3-Jun-18 22:21pm
v2
Comments
Afzaal Ahmad Zeeshan 4-Jun-18 5:33am    
If you want to publish this, have you considered dotnet publish? Also what files are you referring to? .Dll, .json files are required.
Mehdi Gholam 4-Jun-18 5:42am    
I am using dotnet publish, but my question is how can I separate the "system" dlls to a bin folder and leave my dlls in the root?
JimVas2005 12-Mar-19 17:46pm    
I want to do the same, put the system dlls into a bin or lib folder, for a simple hello world app, are 218 files in the same folder:

10/11/2018 15:35 19.208 api-ms-win-core-console-l1-1-0.dll
10/11/2018 15:35 18.696 api-ms-win-core-datetime-l1-1-0.dll
10/11/2018 15:35 18.696 api-ms-win-core-debug-l1-1-0.dll
10/11/2018 15:35 18.696 api-ms-win-core-errorhandling-l1-1-0.dll
10/11/2018 15:35 22.280 api-ms-win-core-file-l1-1-0.dll
10/11/2018 15:35 18.696 api-ms-win-core-file-l1-2-0.dll
10/11/2018 15:35 18.696 api-ms-win-core-file-l2-1-0.dll
10/11/2018 15:35 18.696 api-ms-win-core-handle-l1-1-0.dll
10/11/2018 15:35 19.208 api-ms-win-core-heap-l1-1-0.dll
10/11/2018 15:35 18.696 api-ms-win-core-interlocked-l1-1-0.dll
10/11/2018 15:35 19.720 api-ms-win-core-libraryloader-l1-1-0.dll
10/11/2018 15:35 21.256 api-ms-win-core-localization-l1-2-0.dll
10/11/2018 15:35 19.208 api-ms-win-core-memory-l1-1-0.dll
10/11/2018 15:35 18.696 api-ms-win-core-namedpipe-l1-1-0.dll
10/11/2018 15:35 19.720 api-ms-win-core-processenvironment-l1-1-0.dll
10/11/2018 15:35 20.744 api-ms-win-core-processthreads-l1-1-0.dll
10/11/2018 15:35 19.208 api-ms-win-core-processthreads-l1-1-1.dll
10/11/2018 15:35 18.184 api-ms-win-core-profile-l1-1-0.dll
10/11/2018 15:35 19.208 api-ms-win-core-rtlsupport-l1-1-0.dll
10/11/2018 15:35 18.696 api-ms-win-core-string-l1-1-0.dll
10/11/2018 15:35 20.744 api-ms-win-core-synch-l1-1-0.dll
10/11/2018 15:35 19.208 api-ms-win-core-synch-l1-2-0.dll
10/11/2018 15:35 19.720 api-ms-win-core-sysinfo-l1-1-0.dll
10/11/2018 15:35 19.208 api-ms-win-core-timezone-l1-1-0.dll
10/11/2018 15:35 18.696 api-ms-win-core-util-l1-1-0.dll
10/11/2018 15:35 19.720 api-ms-win-crt-conio-l1-1-0.dll
10/11/2018 15:35 22.792 api-ms-win-crt-convert-l1-1-0.dll
10/11/2018 15:35 19.208 api-ms-win-crt-environment-l1-1-0.dll
10/11/2018 15:35 20.744 api-ms-win-crt-filesystem-l1-1-0.dll
10/11/2018 15:35 19.720 api-ms-win-crt-heap-l1-1-0.dll
10/11/2018 15:35 19.208 api-ms-win-crt-locale-l1-1-0.dll
10/11/2018 15:35 27.912 api-ms-win-crt-math-l1-1-0.dll
10/11/2018 15:35 26.888 api-ms-win-crt-multibyte-l1-1-0.dll
10/11/2018 15:35 71.432 api-ms-win-crt-private-l1-1-0.dll
10/11/2018 15:35 19.720 api-ms-win-crt-process-l1-1-0.dll
10/11/2018 15:35 23.304 api-ms-win-crt-runtime-l1-1-0.dll
10/11/2018 15:35 24.840 api-ms-win-crt-stdio-l1-1-0.dll
10/11/2018 15:35 24.840 api-ms-win-crt-string-l1-1-0.dll
10/11/2018 15:35 21.256 api-ms-win-crt-time-l1-1-0.dll
10/11/2018 15:35 19.208 api-ms-win-crt-utility-l1-1-0.dll
10/11/2018 15:35 729.856 clrcompression.dll
10/11/2018 15:35 244.464 clretwrc.dll
10/11/2018 15:35 1.356.528 clrjit.dll
11/03/2019 18:42 41.744 cmdPrueba05.deps.json
11/03/2019 18:13 4.096 cmdPrueba05.dll
11/03/2019 18:13 137.728 cmdPrueba05.exe
11/03/2019 18:13 440 cmdPrueba05.pdb
11/03/2019 18:13 28 cmdPrueba05.runtimeconfig.json
10/11/2018 15:35 5.967.600 coreclr.dll
10/11/2018 15:35 149.744 dbgshim.dll
10/11/2018 15:40 402.496 hostfxr.dll
10/11/2018 15:40 585.784 hostpolicy.dll
10/11/2018 15:35 773.184 Microsoft.CSharp.dll
10/11/2018 15:35 1.495.800 Microsoft.DiaSymReader.Native.amd64.dll
10/11/2018 15:35 465.984 Microsoft.VisualBasic.dll
10/11/2018 15:35 22.072 Microsoft.Win32.Primitives.dll
10/11/2018 15:35 85.568 Microsoft.Win32.Registry.dll
10/11

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900