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我已经在我的编辑中加入了一个链接。 –