0
林在我的預建事件中運行以下命令Visual Studio的預建事件
(get-content "$(SolutionDir)woop.txt") -replace 'HELLO','GOODBYE' | set-content "$(SolutionDir)woop.txt"
然而即時得到以下錯誤:
命令"(get-content "C:\Users\jonny\Desktop\data\a\woop.txt") -replace 'HELLO','GOODBYE' | set-content "C:\Users\jonny\Desktop\data\a\woop.txt""
退出,代碼爲255
任何一個有什麼想法?
任何想法你如何做到這一點? –
之前從未使用ps1文件或powershell.exe我已經在我的編輯中加入了一個鏈接。 –