【问题标题】:nuspec.xsd repository typesnuspec.xsd 存储库类型
【发布时间】:2018-07-25 05:45:57
【问题描述】:

我发现现在可以下载 nuget 包的源代码,如果包提供的话。所以我查阅了文档:

https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd

<xs:element name="repository" maxOccurs="1" minOccurs="0">
    <xs:complexType>
        <xs:attribute name="type" type="xs:string" use="optional" />
        <xs:attribute name="url" type="xs:anyURI" use="optional" />
        <xs:attribute name="branch" type="xs:string" use="optional" />
        <xs:attribute name="commit" type="xs:string" use="optional" />
    </xs:complexType>
</xs:element>

有谁知道,或者是否有任何关于我可以放入“类型”的进一步文档?因为 .xsd 只说“字符串”。我知道“git”是一个可能的选项,但我没有看到任何其他选项。

【问题讨论】:

    标签: nuget-package nuget-spec


    【解决方案1】:

    git 是默认的

    < RepositoryType>git< /RepositoryType>

    目前似乎没有其他选择。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-06
      • 2013-11-21
      • 2011-11-20
      • 2018-05-27
      • 2010-10-01
      • 1970-01-01
      相关资源
      最近更新 更多