Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2010 vs2010中断parameters.xml的内容_Visual Studio 2010_Parameters_Msdeploy - Fatal编程技术网

Visual studio 2010 vs2010中断parameters.xml的内容

Visual studio 2010 vs2010中断parameters.xml的内容,visual-studio-2010,parameters,msdeploy,Visual Studio 2010,Parameters,Msdeploy,我得到了包含以下内容的Parameters.xml文件 <parameter name="Identity Suffix" description="Suffix of the identity services of the environment" tags="" > <parameterEntry kind="TextFile" scope="\\web.config$" match="__IDENTITY_SUFFIX__"/> <par

我得到了包含以下内容的Parameters.xml文件

<parameter name="Identity Suffix" description="Suffix of the identity services of the environment"   tags="" >
    <parameterEntry kind="TextFile" scope="\\web.config$" match="__IDENTITY_SUFFIX__"/>
    <parameterValidation type="AllowEmpty" /> 
</parameter>


运行构建部署包后,输出文件不包含任何parameterValidation,我必须手动编辑该文件。如何修复此行为?

IIS支持两种方案:

<parameterValidation kind="AllowEmpty" />
<parameterValidation type="AllowEmpty" />


VS只支持前一个

IIS支持两个方案:

<parameterValidation kind="AllowEmpty" />
<parameterValidation type="AllowEmpty" />


VS只支持第一个

谢谢。如何格式化消息中的xml?谢谢。如何格式化消息中的xml?