gpt4 book ai didi

azure - Web 部署到 azure 时出现 EscapeTextForRegularExpressions 错误

转载 作者:行者123 更新时间:2023-12-03 04:46:33 32 4
gpt4 key购买 nike

在我的 asp.ent MVC4 项目中,我使用 webdeploy 部署到 azure,并且我之前多次将此项目部署到 azure 上的应用程序服务。但突然间我遇到了这个错误。

"EscapeTextForRegularExpressions" task was not given a value for the required parameter "Text"

I Have found an answer:

将此文件添加到 Web 项目的根文件夹中。

File Name : *.wpp.targets


<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ExcludeFromPackageFolders Include="Internal">
<FromTarget>*.wpp.targets</FromTarget>
</ExcludeFromPackageFolders>
</ItemGroup>
</Project>

Never the less I cannot understand the real cause of the problem

最佳答案

根据你的描述,我找到了类似的issue注意到IncludeIisSettings在 *.csproj 内。根据我的测试,如果我指定 <IncludeIisSettings>true</IncludeIisSettings>使用我的csproj,那么当我使用VS的Publish向导中的Web Deploy方法时,我可能会遇到类似的问题,如下所示:

enter image description here

删除 IncludeIisSettings 后或者将该值设置为 false,然后我就可以成功地将我的 Web 应用程序部署到 azure Web 应用程序。

关于azure - Web 部署到 azure 时出现 EscapeTextForRegularExpressions 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46431924/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com