-
[WPF] exe 경로 dll 폴더 분리C#/WPF 2024. 4. 18. 09:04
1. nulastudio.NetBeauty 사용.
<PropertyGroup> <BeautySharedRuntimeMode>False</BeautySharedRuntimeMode> <!-- beauty into sub-directory, default is libs, quote with "" if contains space --> <BeautyLibsDir Condition="$(BeautySharedRuntimeMode) == 'True'">../libraries</BeautyLibsDir> <BeautyLibsDir Condition="$(BeautySharedRuntimeMode) != 'True'">./libraries</BeautyLibsDir> <!-- dlls that you don't want to be moved or can not be moved --> <!-- <BeautyExcludes>dll1.dll;lib*;...</BeautyExcludes> --> <!-- dlls that end users never needed, so hide them --> <!-- <BeautyHiddens>hostfxr;hostpolicy;*.deps.json;*.runtimeconfig*.json</BeautyHiddens> --> <!-- set to True if you want to disable --> <DisableBeauty>False</DisableBeauty> <!-- set to False if you want to beauty on build --> <BeautyOnPublishOnly>False</BeautyOnPublishOnly> <!-- DO NOT TOUCH THIS OPTION --> <BeautyNoRuntimeInfo>False</BeautyNoRuntimeInfo> <!-- set to True if you want to allow 3rd debuggers(like dnSpy) debugs the app --> <BeautyEnableDebugging>False</BeautyEnableDebugging> <!-- the patch can reduce the file count --> <!-- set to False if you want to disable --> <!-- SCD Mode Feature Only --> <BeautyUsePatch>True</BeautyUsePatch> <!-- App Entry Dll = BeautyDir + BeautyAppHostDir + BeautyAppHostEntry --> <!-- see https://github.com/nulastudio/NetBeauty2#customize-apphost for more details --> <!-- relative path based on AppHostDir --> <!-- .NET Core Non Single-File Only --> <!-- <BeautyAppHostEntry>bin/MyApp.dll</BeautyAppHostEntry> --> <!-- relative path based on BeautyDir --> <!-- .NET Core Non Single-File Only --> <!-- <BeautyAppHostDir>..</BeautyAppHostDir> --> <!-- <BeautyAfterTasks></BeautyAfterTasks> --> <!-- valid values: Error|Detail|Info --> <BeautyLogLevel>Info</BeautyLogLevel> <!-- set to a repo mirror if you have troble in connecting github --> <!-- <BeautyGitCDN>https://gitee.com/liesauer/HostFXRPatcher</BeautyGitCDN> --> <!-- <BeautyGitTree>master</BeautyGitTree> --> </PropertyGroup>
https://github.com/nulastudio/NetBeauty2
GitHub - nulastudio/NetBeauty2: Move a .NET Framework/.NET Core app runtime components and dependencies into a sub-directory and
Move a .NET Framework/.NET Core app runtime components and dependencies into a sub-directory and make it beauty. - nulastudio/NetBeauty2
github.com
https://forum.dotnetdev.kr/t/dll/5327/5
지역화 리소스 dll 경로를 지정할 수 있나요?
.Net core 시리즈부터는 App.config 파일을 지원하지 않는다고 하네요.ConfigurationBuilder를 활용해서 값을 쓰고 읽을 순 있으나 runtime 명령어가 먹히진 않는 듯 합니다. 참고로 전 .NET 6에 WPF 프로젝트입
forum.dotnetdev.kr
728x90'C# > WPF' 카테고리의 다른 글
[WPF] Install WPF (0) 2024.04.18 [WPF] windows service local application data Path (0) 2024.04.18 [WPF] Mutex (0) 2024.04.17 [WPF] property 초기화 생성 (0) 2024.04.17 [WPF] System Tray Icon (0) 2024.04.09 댓글