Tobias Krasinger
Tobias Krasinger

Reputation: 21

nuspec.xsd repository types

I've seen that it is now possible to download source code of a nuget package, if the package provides that. So I lookuped up the documentation:

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>

Does anyone know, or is there any further documentation of what I can put into "type"? Because the .xsd only says "string". I know that "git" is a possible option, but I don't see any other options.

Upvotes: 0

Views: 724

Answers (1)

Polluks
Polluks

Reputation: 572

git is the default

< RepositoryType>git< /RepositoryType>

there seems to be no alternative so far.

Upvotes: 1

Related Questions