我注意到,在我的PUBXML文件中,第一个元素以蓝色波浪划线。当我移除它并试图进入它时,我注意到intellisense没有识别它。我已经和关于PUBXML文件的MSDN核实过了,这似乎是正确的。
我还注意到,当我移除第一个标签时,第二个标签(现在成为最顶端)立即被相同的蓝波划线。所以我的结论是,并不是内在的,下划线的标签是有问题的。
错误可能是什么?怎么麻烦-射它?
下面是文件的内容。请注意,这是由MS/VS和Azure发布文件下载自动提供的不受干扰的版本。
<?xml version="1.0" encoding="utf-8"?>
<!-- This file is used by the publish/package process of your Web project.
You can customize the behavior of this process by editing this MSBuild
file. In order to learn more about this please visit
http://go.microsoft.com/fwlink/?LinkID=208121. -->
<Project
ToolsVersion="4.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>...</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>False</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<MSDeployServiceURL>...</MSDeployServiceURL>
<DeployIisAppPath>VisitMore</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>Chamster</UserName>
<_SavePWD>True</_SavePWD>
<PrecompileBeforePublish>True</PrecompileBeforePublish>
<EnableUpdateable>False</EnableUpdateable>
<DebugSymbols>False</DebugSymbols>
<WDPMergeOption>DonotMerge</WDPMergeOption>
</PropertyGroup>
</Project>发布于 2014-01-04 19:16:05
XML编辑器将在您指定的xmlns中未定义的任何内容下设置一个蓝色切换。但是,这种情况一直在发生-- VS附带的MSBuild模式相对较少,考虑到MSBuild允许您定义任意属性名称。事实上,即使在大多数情况下打开项目文件,您也会发现这些问题。
别管那些蓝色的废话了。
https://stackoverflow.com/questions/20921790
复制相似问题