MSBuild
으로 번역 된 GNU makefile
이 있습니다.msbuild - sed 명령 오류 - 작은 따옴표와 큰 따옴표 포함 방법
<Target Name="prebuild_cat">
<Exec
EchoOff="true"
StandardOutputImportance="low"
StandardErrorImportance="low"
IgnoreExitCode="true"
ConsoleToMSBuild="true"
Command=' $(GnuSed) 's/^Q(.*)/"&"/'
'>
</Exec>
</Target>
:
Exec
작업의
Command
속성을 닫습니다 해야하는 작은 따옴표를 방해 그것이
'
(작은 따옴표)를 포함하고 있기 때문에
MSBuild
에서 실행되지 않습니다
sed
를 포함하는 명령이 있습니다
실행하면 Visual Studio에서
오류 MSB4025 : 프로젝트 파일을로드 할 수 없습니다. 's'는 예기치 않은 토큰입니다. 기대되는 공백. 내가
"
<Target Name="prebuild_cat"> <Exec EchoOff="true" StandardOutputImportance="low" StandardErrorImportance="low" IgnoreExitCode="true" ConsoleToMSBuild="true" Command=' $(GnuSed) 's/^Q(.*)/"&"/' '> </Exec> </Target>
오류 MSB4025와
'
및"
와'
을 대체 라인 (244), 위치 (25): 프로젝트 파일을로드 할 수 없습니다. EntityName을 구문 분석하는 중 오류가 발생했습니다.
이 문제점에 대한 업데이트는 있습니까? 이 문제를 해결 했습니까? 그렇지 않은 경우이 문제에 대한 최신 상태를 알려 주시기 바랍니다. –
@ Leo-MSFT 나는 대답을 선택했다 : 나의 문제는'&'을'&' – Adrian