96 references to DependencyContextStrings
Microsoft.Extensions.DependencyModel (96)
DependencyContextJsonReader.cs (44)
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:
524
case
DependencyContextStrings
.AssemblyVersionPropertyName:
527
case
DependencyContextStrings
.FileVersionPropertyName:
569
case
DependencyContextStrings
.RidPropertyName:
572
case
DependencyContextStrings
.AssetTypePropertyName:
575
case
DependencyContextStrings
.AssemblyVersionPropertyName:
578
case
DependencyContextStrings
.FileVersionPropertyName:
615
if (propertyName ==
DependencyContextStrings
.LocalePropertyName)
672
case
DependencyContextStrings
.Sha512PropertyName:
675
case
DependencyContextStrings
.TypePropertyName:
678
case
DependencyContextStrings
.ServiceablePropertyName:
681
case
DependencyContextStrings
.PathPropertyName:
684
case
DependencyContextStrings
.HashPathPropertyName:
687
case
DependencyContextStrings
.RuntimeStoreManifestPropertyName:
767
int separatorPosition = nameWithVersion.IndexOf(
DependencyContextStrings
.VersionSeparator);
788
.Where(e => e.Type ==
DependencyContextStrings
.RuntimeAssetType)
800
.Where(e => e.Type ==
DependencyContextStrings
.NativeAssetType)
DependencyContextWriter.cs (52)
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);
239
AddAssets(
DependencyContextStrings
.RuntimeAssembliesKey, runtimeLibrary.RuntimeAssemblyGroups.GetDefaultGroup(), jsonWriter);
240
AddAssets(
DependencyContextStrings
.NativeLibrariesKey, runtimeLibrary.NativeLibraryGroups.GetDefaultGroup(), jsonWriter);
278
AddAssets(
DependencyContextStrings
.RuntimeAssembliesKey, runtimeLibrary.RuntimeAssemblyGroups.GetDefaultGroup(), jsonWriter);
279
AddAssets(
DependencyContextStrings
.NativeLibrariesKey, runtimeLibrary.NativeLibraryGroups.GetDefaultGroup(), jsonWriter);
284
wroteObjectStart = AddRuntimeSpecificAssetGroups(
DependencyContextStrings
.RuntimeAssetType, runtimeLibrary.RuntimeAssemblyGroups, wroteObjectStart, jsonWriter);
285
wroteObjectStart = AddRuntimeSpecificAssetGroups(
DependencyContextStrings
.NativeAssetType, runtimeLibrary.NativeLibraryGroups, wroteObjectStart, jsonWriter);
300
jsonWriter.WriteBoolean(
DependencyContextStrings
.CompilationOnlyPropertyName, true);
314
jsonWriter.WriteStartObject(
DependencyContextStrings
.RuntimeTargetsPropertyName);
331
string pseudoPathFolder = assetType ==
DependencyContextStrings
.RuntimeAssetType ?
336
jsonWriter.WriteString(
DependencyContextStrings
.RidPropertyName, group.Runtime);
337
jsonWriter.WriteString(
DependencyContextStrings
.AssetTypePropertyName, assetType);
353
jsonWriter.WriteString(
DependencyContextStrings
.RidPropertyName, runtime);
354
jsonWriter.WriteString(
DependencyContextStrings
.AssetTypePropertyName, assetType);
358
jsonWriter.WriteString(
DependencyContextStrings
.AssemblyVersionPropertyName, asset.AssemblyVersion);
363
jsonWriter.WriteString(
DependencyContextStrings
.FileVersionPropertyName, asset.FileVersion);
391
jsonWriter.WriteString(
DependencyContextStrings
.AssemblyVersionPropertyName, runtimeFile.AssemblyVersion);
396
jsonWriter.WriteString(
DependencyContextStrings
.FileVersionPropertyName, runtimeFile.FileVersion);
409
.GroupBy(library => library.Name +
DependencyContextStrings
.VersionSeparator + library.Version);
411
jsonWriter.WriteStartObject(
DependencyContextStrings
.LibrariesPropertyName);
422
jsonWriter.WriteString(
DependencyContextStrings
.TypePropertyName, library.Type);
423
jsonWriter.WriteBoolean(
DependencyContextStrings
.ServiceablePropertyName, library.Serviceable);
424
jsonWriter.WriteString(
DependencyContextStrings
.Sha512PropertyName, library.Hash);
428
jsonWriter.WriteString(
DependencyContextStrings
.PathPropertyName, library.Path);
433
jsonWriter.WriteString(
DependencyContextStrings
.HashPathPropertyName, library.HashPath);
438
jsonWriter.WriteString(
DependencyContextStrings
.RuntimeStoreManifestPropertyName, library.RuntimeStoreManifestName);