-
Notifications
You must be signed in to change notification settings - Fork 712
/
Copy pathPackagingConstants.cs
62 lines (52 loc) · 2.37 KB
/
PackagingConstants.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
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace NuGet.Packaging
{
public static class PackagingConstants
{
public static readonly string AnyFramework = "any";
public static readonly string AnyCodeLanguage = "any";
public static readonly string AgnosticFramework = "agnostic";
public static readonly string TargetFrameworkPropertyKey = "targetframework";
public static readonly string ContentFilesDefaultBuildAction = "Compile";
public static readonly string PackageVerifyDurationName = "PackageVerifyDuration";
public static class Folders
{
public static readonly string Content = "content";
public static readonly string Build = "build";
public static readonly string BuildCrossTargeting = "buildCrossTargeting";
public static readonly string BuildTransitive = "buildTransitive";
public static readonly string Tools = "tools";
public static readonly string ContentFiles = "contentFiles";
public static readonly string Lib = "lib";
public static readonly string Native = "native";
public static readonly string Runtimes = "runtimes";
public static readonly string Ref = "ref";
public static readonly string Analyzers = "analyzers";
public static readonly string Source = "src";
public static string[] Known { get; } = new string[]
{
Content,
Build,
BuildCrossTargeting,
BuildTransitive,
Tools,
ContentFiles,
Lib,
Native,
Runtimes,
Ref,
Analyzers,
Source
};
}
/// <summary>
/// Represents the ".nuspec" extension.
/// </summary>
public static readonly string ManifestExtension = ".nuspec";
public static readonly string SnupkgFormat = "snupkg";
public static readonly string SymbolsNupkgFormat = "symbols.nupkg";
// Starting from nuget 2.0, we use a file with the special name '_._' to represent an empty folder.
internal const string PackageEmptyFileName = "_._";
}
}