作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在我的 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方法时,我可能会遇到类似的问题,如下所示:
删除 IncludeIisSettings
后或者将该值设置为 false,然后我就可以成功地将我的 Web 应用程序部署到 azure Web 应用程序。
关于azure - Web 部署到 azure 时出现 EscapeTextForRegularExpressions 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46431924/
在我的 asp.ent MVC4 项目中,我使用 webdeploy 部署到 azure,并且我之前多次将此项目部署到 azure 上的应用程序服务。但突然间我遇到了这个错误。 "EscapeText
我是一名优秀的程序员,十分优秀!