intellisense无法识别PUBXML中的正确标签 [英] Correct tags in PUBXML not recognized by intellisense

查看:90
本文介绍了intellisense无法识别PUBXML中的正确标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,在我的PUBXML文件中,第一个元素由蓝色波浪形下划线。当我删除它并尝试输入它时,我注意到intellisense无法识别它。我已经与有关SDN的MSDN进行了检查,这似乎是正确的。

I've noticed that in my PUBXML file, the first element is underlined by a blue wave. When I removed it and tried to enter it, I noticed that intellisense didn't recognize it. I've checked with MSDN about PUBXML files and it seems to be correct.

我还注意到,当我删除< PropertyGroup> 中的第一个标签时,第二个标签(现在成为最上面的标签)立即出现了。由相同的蓝色波浪划线。所以我的结论是,不是内部带下划线的标签出了问题。

I also noticed that when I removed the first tag in the <PropertyGroup>, the second (now becoming the topmost) immediately got underlined by the same blue wave. So my conclusion is that it's not the inner, underlined tags that's something is wrong with.

可能是什么错误?如何解决它?

What could be the error? How to trouble-shoot it?

以下是文件的内容。请注意,这是MS / VS和Azure发布文件下载自动提供的版本。

Below are the contents of the the file. Please note that it's the untampetered with version provided automatically by MS/VS and Azure publishing file download.

<?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>


推荐答案

XML编辑器会在没有任何内容的地方放置一个蓝色的花体在您指定的xmlns中定义。但是,这种情况一直发生-VS附带的MSBuild架构具有相对较少的属性,因为MSBuild允许您定义任意属性名称。实际上,即使在大多数情况下打开项目文件,您也会发现这些曲线。

The XML editor will put a blue squiggle under anything not defined in the xmlns you've specified. However, this happens all the time - the MSBuild schema that VS ships with has relatively few properties considering that MSBuild lets you define arbitrary property names. In fact, you'll find these squiggles even if you open a project file in most cases.

只需忽略蓝色曲线。

这篇关于intellisense无法识别PUBXML中的正确标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆