Visual Studio - Input or output cannot be redirected because the specified file is invalid.
비주얼 스튜디오로 특정 프로젝트를 실행하는 경우 다음과 같은 오류가 발생한다면?
Unable to start program 'C:\temp\ConsoleApp1\bin\Debug\netcoreapp3.1\ConsoleApp1.exe'.
Input or output cannot be redirected because the specified file is invalid.
프로그램을 시작 할 수 없습니다. 지정된 파일이 잘못되어 입력 또는 출력을 리디렉션 할 수 없습니다
해당 프로젝트 속성의 "Debug" 창에서 "Application arguments"에 Input/Output 관련 Redirection이 전달되고 있는지 확인해 볼 필요가 있습니다.
이런 식의 설정이 필요한 경우는, 바로 아래와 같은 프로그램들을 구현할 때입니다.
C# - 간단하게 만들어 보는 리눅스의 nc(netcat), json_pp 프로그램
; https://www.sysnet.pe.kr/2/0/12311
C# - (Wireshark의) USBPcap을 이용한 USB 패킷 모니터링
; https://www.sysnet.pe.kr/2/0/12215
[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]