在Azure发布管道中,使用$(System.DefaultWorkingDirectory)作为变量值时,它将引发System.FormatException异常

问题描述 投票:0回答:1

[在使用Azure发布管道在我的项目中运行集成测试时,我正在使用$(System.DefaultWorkingDirectory)通过变量选项卡中的发布管道来替换appsetting.release.json中的变量之一。

但是在运行时抛出以下错误:

System.FormatException:无法解析JSON文件。 ---> System.Text.Json.JsonReaderException:'a'是JSON字符串中的无效的转义字符。该字符串应正确转义。行号:13 | BytePositionInLine:27。

有人可以帮助我解决此错误。在此先感谢。

asp.net-core azure-devops
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.