0
这是我想执行我的生成后脚本:
powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -Command "Compress-Archive -LiteralPath "$(BuiltOuputPath)" -CompressionLevel Optimal -DestinationPath "$(BuiltOuputPath)_$(Get-Date -Format yyyyMMddTHHmm).zip""
问题是这一部分:$(Get-Date -Format yyyyMMddTHHmm)
的Visual Studio与空字符串替换它。如何预防它?如何逃避at签名并将其传递给PowerShell?