如何添加intellisense到packages.config(nuget包),而不会在添加更多包时丢失所有设置

时间:2015-01-19 04:20:38

标签: nuget intellisense packages.config

我更新了packages.config中的packages元素,如下所示:

<packages xmlns="urn:packages">

还添加了packages.xsd:

<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
      targetNamespace="urn:packages" xmlns="urn:packages">
  <xs:element name="packages">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="package" maxOccurs="unbounded">
          <xs:complexType>
            <xs:attribute name="id" type="xs:string" use="required" />
            <xs:attribute name="version" type="xs:string" use="required" />
            <xs:attribute name="targetFramework" type="xs:string" use="optional" />
            <xs:attribute name="allowedVersions" type="xs:string" use="optional" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

现在,每次添加包时,packages.config都只重置新包...

我正在使用Visual Studio 2013和Nuget.Core.2.8.3

知道如何使用intellisense吗?

0 个答案:

没有答案