我注意到在我的 PUBXML 文件中,第一个元素带有蓝色波浪下划线。当我删除它并尝试输入它时,我注意到智能感知无法识别它。我已经与MSDN 核对了 PUBXML 文件,它似乎是正确的。
我还注意到,当我删除<PropertyGroup>中的第一个标签时,第二个(现在成为最上面的)立即被相同的蓝色波浪下划线。所以我的结论是,问题不在于内部带下划线的标签。
可能是什么错误?如何解决它?
以下是该文件的内容。请注意,它是由 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>