102 references to DependencyContextStrings
Microsoft.Extensions.DependencyModel (102)
DependencyContextJsonReader.cs (47)
147
case
DependencyContextStrings
.RuntimeTargetPropertyName:
150
case
DependencyContextStrings
.CompilationOptionsPropertyName:
153
case
DependencyContextStrings
.TargetsPropertyName:
156
case
DependencyContextStrings
.LibrariesPropertyName:
159
case
DependencyContextStrings
.RuntimesPropertyName:
175
int separatorIndex = runtimeTargetName.IndexOf(
DependencyContextStrings
.VersionSeparator);
241
return name.Contains(
DependencyContextStrings
.VersionSeparator);
255
case
DependencyContextStrings
.RuntimeTargetNamePropertyName:
258
case
DependencyContextStrings
.RuntimeTargetSignaturePropertyName:
288
case
DependencyContextStrings
.DefinesPropertyName:
291
case
DependencyContextStrings
.LanguageVersionPropertyName:
294
case
DependencyContextStrings
.PlatformPropertyName:
297
case
DependencyContextStrings
.AllowUnsafePropertyName:
300
case
DependencyContextStrings
.WarningsAsErrorsPropertyName:
303
case
DependencyContextStrings
.OptimizePropertyName:
306
case
DependencyContextStrings
.KeyFilePropertyName:
309
case
DependencyContextStrings
.DelaySignPropertyName:
312
case
DependencyContextStrings
.PublicSignPropertyName:
315
case
DependencyContextStrings
.DebugTypePropertyName:
318
case
DependencyContextStrings
.EmitEntryPointPropertyName:
321
case
DependencyContextStrings
.GenerateXmlDocumentationPropertyName:
409
case
DependencyContextStrings
.DependenciesPropertyName:
412
case
DependencyContextStrings
.RuntimeAssembliesKey:
415
case
DependencyContextStrings
.NativeLibrariesKey:
418
case
DependencyContextStrings
.CompileTimeAssembliesKey:
421
case
DependencyContextStrings
.RuntimeTargetsPropertyName:
424
case
DependencyContextStrings
.ResourceAssembliesPropertyName:
427
case
DependencyContextStrings
.CompilationOnlyPropertyName:
525
case
DependencyContextStrings
.AssemblyVersionPropertyName:
528
case
DependencyContextStrings
.FileVersionPropertyName:
531
case
DependencyContextStrings
.LocalPathPropertyName:
573
case
DependencyContextStrings
.RidPropertyName:
576
case
DependencyContextStrings
.AssetTypePropertyName:
579
case
DependencyContextStrings
.AssemblyVersionPropertyName:
582
case
DependencyContextStrings
.FileVersionPropertyName:
585
case
DependencyContextStrings
.LocalPathPropertyName:
623
if (propertyName ==
DependencyContextStrings
.LocalePropertyName)
627
else if (propertyName ==
DependencyContextStrings
.LocalPathPropertyName)
684
case
DependencyContextStrings
.Sha512PropertyName:
687
case
DependencyContextStrings
.TypePropertyName:
690
case
DependencyContextStrings
.ServiceablePropertyName:
693
case
DependencyContextStrings
.PathPropertyName:
696
case
DependencyContextStrings
.HashPathPropertyName:
699
case
DependencyContextStrings
.RuntimeStoreManifestPropertyName:
779
int separatorPosition = nameWithVersion.IndexOf(
DependencyContextStrings
.VersionSeparator);
800
.Where(e => e.Type ==
DependencyContextStrings
.RuntimeAssetType)
812
.Where(e => e.Type ==
DependencyContextStrings
.NativeAssetType)
DependencyContextWriter.cs (55)
43
jsonWriter.WriteStartObject(
DependencyContextStrings
.RuntimeTargetPropertyName);
46
jsonWriter.WriteString(
DependencyContextStrings
.RuntimeTargetNamePropertyName,
51
jsonWriter.WriteString(
DependencyContextStrings
.RuntimeTargetNamePropertyName,
52
context.Target.Framework +
DependencyContextStrings
.VersionSeparator + context.Target.Runtime);
54
jsonWriter.WriteString(
DependencyContextStrings
.RuntimeTargetSignaturePropertyName,
61
jsonWriter.WriteStartObject(
DependencyContextStrings
.RuntimesPropertyName);
76
jsonWriter.WriteStartObject(
DependencyContextStrings
.CompilationOptionsPropertyName);
79
jsonWriter.WriteStartArray(
DependencyContextStrings
.DefinesPropertyName);
86
AddStringPropertyIfNotNull(
DependencyContextStrings
.LanguageVersionPropertyName, compilationOptions.LanguageVersion, jsonWriter);
87
AddStringPropertyIfNotNull(
DependencyContextStrings
.PlatformPropertyName, compilationOptions.Platform, jsonWriter);
88
AddBooleanPropertyIfNotNull(
DependencyContextStrings
.AllowUnsafePropertyName, compilationOptions.AllowUnsafe, jsonWriter);
89
AddBooleanPropertyIfNotNull(
DependencyContextStrings
.WarningsAsErrorsPropertyName, compilationOptions.WarningsAsErrors, jsonWriter);
90
AddBooleanPropertyIfNotNull(
DependencyContextStrings
.OptimizePropertyName, compilationOptions.Optimize, jsonWriter);
91
AddStringPropertyIfNotNull(
DependencyContextStrings
.KeyFilePropertyName, compilationOptions.KeyFile, jsonWriter);
92
AddBooleanPropertyIfNotNull(
DependencyContextStrings
.DelaySignPropertyName, compilationOptions.DelaySign, jsonWriter);
93
AddBooleanPropertyIfNotNull(
DependencyContextStrings
.PublicSignPropertyName, compilationOptions.PublicSign, jsonWriter);
94
AddBooleanPropertyIfNotNull(
DependencyContextStrings
.EmitEntryPointPropertyName, compilationOptions.EmitEntryPoint, jsonWriter);
95
AddBooleanPropertyIfNotNull(
DependencyContextStrings
.GenerateXmlDocumentationPropertyName, compilationOptions.GenerateXmlDocumentation, jsonWriter);
96
AddStringPropertyIfNotNull(
DependencyContextStrings
.DebugTypePropertyName, compilationOptions.DebugType, jsonWriter);
118
jsonWriter.WriteStartObject(
DependencyContextStrings
.TargetsPropertyName);
126
WriteTarget(context.Target.Framework +
DependencyContextStrings
.VersionSeparator + context.Target.Runtime,
139
WriteTargetLibrary(library.Name +
DependencyContextStrings
.VersionSeparator + library.Version, library, jsonWriter);
170
WritePortableTargetLibrary(library.Name +
DependencyContextStrings
.VersionSeparator + library.Version,
183
WriteAssetList(
DependencyContextStrings
.CompileTimeAssembliesKey, compilationAssemblies, jsonWriter);
203
jsonWriter.WriteStartObject(
DependencyContextStrings
.DependenciesPropertyName);
219
jsonWriter.WriteStartObject(
DependencyContextStrings
.ResourceAssembliesPropertyName);
224
jsonWriter.WriteString(
DependencyContextStrings
.LocalePropertyName, resourceAssembly.Locale);
227
jsonWriter.WriteString(
DependencyContextStrings
.LocalPathPropertyName, NormalizePath(resourceAssembly.LocalPath));
244
AddAssets(
DependencyContextStrings
.RuntimeAssembliesKey, runtimeLibrary.RuntimeAssemblyGroups.GetDefaultGroup(), jsonWriter);
245
AddAssets(
DependencyContextStrings
.NativeLibrariesKey, runtimeLibrary.NativeLibraryGroups.GetDefaultGroup(), jsonWriter);
283
AddAssets(
DependencyContextStrings
.RuntimeAssembliesKey, runtimeLibrary.RuntimeAssemblyGroups.GetDefaultGroup(), jsonWriter);
284
AddAssets(
DependencyContextStrings
.NativeLibrariesKey, runtimeLibrary.NativeLibraryGroups.GetDefaultGroup(), jsonWriter);
289
wroteObjectStart = AddRuntimeSpecificAssetGroups(
DependencyContextStrings
.RuntimeAssetType, runtimeLibrary.RuntimeAssemblyGroups, wroteObjectStart, jsonWriter);
290
wroteObjectStart = AddRuntimeSpecificAssetGroups(
DependencyContextStrings
.NativeAssetType, runtimeLibrary.NativeLibraryGroups, wroteObjectStart, jsonWriter);
305
jsonWriter.WriteBoolean(
DependencyContextStrings
.CompilationOnlyPropertyName, true);
319
jsonWriter.WriteStartObject(
DependencyContextStrings
.RuntimeTargetsPropertyName);
336
string pseudoPathFolder = assetType ==
DependencyContextStrings
.RuntimeAssetType ?
341
jsonWriter.WriteString(
DependencyContextStrings
.RidPropertyName, group.Runtime);
342
jsonWriter.WriteString(
DependencyContextStrings
.AssetTypePropertyName, assetType);
358
jsonWriter.WriteString(
DependencyContextStrings
.RidPropertyName, runtime);
359
jsonWriter.WriteString(
DependencyContextStrings
.AssetTypePropertyName, assetType);
363
jsonWriter.WriteString(
DependencyContextStrings
.AssemblyVersionPropertyName, asset.AssemblyVersion);
368
jsonWriter.WriteString(
DependencyContextStrings
.FileVersionPropertyName, asset.FileVersion);
373
jsonWriter.WriteString(
DependencyContextStrings
.LocalPathPropertyName, NormalizePath(asset.LocalPath));
401
jsonWriter.WriteString(
DependencyContextStrings
.AssemblyVersionPropertyName, runtimeFile.AssemblyVersion);
406
jsonWriter.WriteString(
DependencyContextStrings
.FileVersionPropertyName, runtimeFile.FileVersion);
411
jsonWriter.WriteString(
DependencyContextStrings
.LocalPathPropertyName, NormalizePath(runtimeFile.LocalPath));
424
.GroupBy(library => library.Name +
DependencyContextStrings
.VersionSeparator + library.Version);
426
jsonWriter.WriteStartObject(
DependencyContextStrings
.LibrariesPropertyName);
437
jsonWriter.WriteString(
DependencyContextStrings
.TypePropertyName, library.Type);
438
jsonWriter.WriteBoolean(
DependencyContextStrings
.ServiceablePropertyName, library.Serviceable);
439
jsonWriter.WriteString(
DependencyContextStrings
.Sha512PropertyName, library.Hash);
443
jsonWriter.WriteString(
DependencyContextStrings
.PathPropertyName, library.Path);
448
jsonWriter.WriteString(
DependencyContextStrings
.HashPathPropertyName, library.HashPath);
453
jsonWriter.WriteString(
DependencyContextStrings
.RuntimeStoreManifestPropertyName, library.RuntimeStoreManifestName);