ILMerge를 사용하여 배포 할 단일 실행 파일을 만들려고합니다. 응용 프로그램에 파일 이름에 공백이 있기 때문에 약간의 어려움이 있습니다. ILMerge는 여러 입력 어셈블리를 지정하기 위해 구분 기호를 사용합니다. 이것은 (분명히 존재하지 않기 때문에) 찾을 수없는 어셈블리가 있음을 의미하지만 ILMerge에 공백을 무시하도록 지시하기 위해 따옴표와 큰 따옴표의 조합을 찾을 수 없습니다.공백이있는 ILMerge 어셈블리
명령 행 입력 :
/out:bin\Debug\My Application.exe /targetplatform:v4,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5" "obj\Debug\My Application.exe" "C:\Users\Username\source\repos\CompanyInternal\My Application\My Application\Newtonsoft.Json.dll" "C:\Users\Username\source\repos\CompanyInternal\My Application\My Application\Renci.SshNet.dll" /log"
명령 줄 출력 :
The list of input assemblies is:
My
Application.exe
obj\Debug\My Application.exe
C:\Users\Username\source\repos\CompanyInternal\My Application\My Application\Newtonsoft.Json.dll
C:\Users\Username\source\repos\CompanyInternal\My Application\My Application\Renci.SshNet.dll
Could not find the file 'My'.
An exception occurred during merging:
ILMerge.Merge: Could not find the file 'My'.
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String[] args)
가 제공 할 수있는 어떤 도움의 사람이 크게
을 감상 할 수있다.
는 공백 명령 줄 매개 변수의 나머지처럼 말을 인용 시도? –
예. 위의 명령 행을 공유했으며 큰 따옴표로 묶었습니다. 그것은 단지 첫 번째 InputAssembly 인수에 대해 공백으로 나뉘며 다른 공백에는없는 것으로 보인다. – Chris
경로 이름을 "큰 따옴표"로 묶어야합니다. 다른 모든 주장에 대해했던 것처럼. –