forked from OneGet/NuGetProvider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NugetLightConstant.cs
70 lines (57 loc) · 2.54 KB
/
NugetLightConstant.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
namespace Microsoft.PackageManagement.NuGetProvider
{
using System;
public static class NuGetConstant
{
/// <summary>
/// Represents the ".nupkg" extension.
/// </summary>
public static readonly string PackageExtension = ".nupkg";
/// <summary>
/// Represents the ".nuspec" extension.
/// </summary>
public static readonly string ManifestExtension = ".nuspec";
/// <summary>
/// Represents the default nuget uri
/// </summary>
public static readonly string NugetSite = "www.nuget.org";
/// <summary>
/// Name of this provider
/// </summary>
public static readonly string ProviderName = "NuGet";
/// <summary>
/// Version of this provider
/// </summary>
public static readonly string ProviderVersion = "3.0.0.1";
/// <summary>
/// Represents a method that the V2 web service supports to find a package
/// </summary>
public static readonly string FindPackagesById= "/FindPackagesById()?id='{0}'";
/// <summary>
/// Represents how many packages to be returned by an api call
/// </summary>
public static readonly string SkipAndTop = "&$skip={0}&$top={1}";
/// <summary>
/// Represents a method that the V2 web service supports to search packages
/// </summary>
public static readonly string SearchTerm = "&searchTerm='{0}'&targetFramework=''&includePrerelease={1}";
/// <summary>
/// Represents a method that the V2 web service supports to search packages with filtering
/// </summary>
public static readonly string SearchFilterAllVersions = "Search()?$orderby=DownloadCount%20desc,Id";
/// <summary>
/// Represents a method that the V2 web service supports to search packages with filtering. The result returned is already
/// sorted by download count.
/// </summary>
public static readonly string SearchFilter = "Search()?$filter=IsLatestVersion";
/// <summary>
/// Config file storing the info as a result of registering a package source
/// </summary>
public static readonly string SettingsFileName = "nuget.config";
/// <summary>
/// The magic unpublished date is 1900-01-01T00:00:00. This is from NugetCore
/// </summary>
public static readonly DateTimeOffset Unpublished = new DateTimeOffset(1900, 1, 1, 0, 0, 0, TimeSpan.FromHours(-8));
}
}