38 references to FileType
Microsoft.NET.HostModel (38)
Bundle\BundleContents.cs (2)
28
internal (FileSpec Spec,
FileType
Type)[] TypedIncludedFiles { get; }
30
internal BundleContents(FileSpec host, (FileSpec Spec,
FileType
Type)[] includedFiles, FileSpec[] excludedFiles)
Bundle\Bundler.cs (26)
78
private bool ShouldCompress(
FileType
type)
87
case
FileType
.DepsJson:
88
case
FileType
.RuntimeConfigJson:
103
private (long startOffset, long compressedSize) AddToBundle(Stream bundle, FileStream file,
FileType
type)
130
if (type ==
FileType
.Assembly)
158
private bool ShouldExclude(
FileType
type, string relativePath)
162
case
FileType
.Assembly:
163
case
FileType
.DepsJson:
164
case
FileType
.RuntimeConfigJson:
167
case
FileType
.NativeBinary:
170
case
FileType
.Symbols:
173
case
FileType
.Unknown:
204
private
FileType
InferType(FileSpec fileSpec)
208
return
FileType
.DepsJson;
213
return
FileType
.RuntimeConfigJson;
218
return
FileType
.Symbols;
224
return
FileType
.Assembly;
231
return
FileType
.NativeBinary;
234
return
FileType
.Unknown;
296
(FileSpec Spec,
FileType
Type)[] relativePathToSpec = bundleContents.TypedIncludedFiles;
306
if (type ==
FileType
.Assembly)
363
FileType
type = kvp.Type;
367
FileType
targetType = _target.TargetSpecificFileType(type);
490
private ((FileSpec Spec,
FileType
Type)[] Included, FileSpec[] Excluded) GetFilteredFileSpecs(IEnumerable<FileSpec> fileSpecs)
495
var relativePathToSpec = new Dictionary<string, (FileSpec Spec,
FileType
Type)>(StringComparer.Ordinal);
507
FileType
type = InferType(fileSpec);
Bundle\FileEntry.cs (3)
29
public readonly
FileType
Type;
34
public FileEntry(
FileType
fileType, string relativePath, long offset, long size, long compressedSize, uint bundleMajorVersion)
68
+ sizeof(
FileType
) // Type (FileType)
Bundle\Manifest.cs (4)
95
public FileEntry AddEntry(
FileType
type, FileStream fileContent, string relativePath, long offset, long compressedSize, uint bundleMajorVersion)
111
case
FileType
.DepsJson:
114
case
FileType
.RuntimeConfigJson:
118
case
FileType
.Assembly:
Bundle\TargetInfo.cs (3)
108
public
FileType
TargetSpecificFileType(
FileType
fileType) => (BundleMajorVersion == 1) ?
FileType
.Unknown : fileType;