91 references to SR
Microsoft.Interop.LibraryImportGenerator.Downlevel (91)
DownlevelLibraryImportDiagnosticsAnalyzer.cs (3)
244
SR
.ResourceManager,
262
libraryImportAttr, symbol.Name,
SR
.InvalidStringMarshallingConfigurationMissingCustomType);
269
libraryImportAttr, symbol.Name,
SR
.InvalidStringMarshallingConfigurationNotCustom);
DownlevelLibraryImportGenerator.cs (2)
219
var discardedDiagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.LibraryImportGenerator.Downlevel.SR));
249
var discardedDiagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), pinvokeStub.DiagnosticLocation,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.LibraryImportGenerator.Downlevel.SR));
GeneratorDiagnostics.cs (86)
32
/// <inheritdoc cref="
SR
.InvalidAttributedMethodSignatureMessageLibraryImport"/>
36
GetResourceString(nameof(
SR
.InvalidLibraryImportAttributeUsageTitle)),
37
GetResourceString(nameof(
SR
.InvalidAttributedMethodSignatureMessageLibraryImport)),
41
description: GetResourceString(nameof(
SR
.InvalidAttributedMethodDescriptionLibraryImport)));
43
/// <inheritdoc cref="
SR
.InvalidAttributedMethodContainingTypeMissingModifiersMessageLibraryImport"/>
47
GetResourceString(nameof(
SR
.InvalidLibraryImportAttributeUsageTitle)),
48
GetResourceString(nameof(
SR
.InvalidAttributedMethodContainingTypeMissingModifiersMessageLibraryImport)),
52
description: GetResourceString(nameof(
SR
.InvalidAttributedMethodDescriptionLibraryImport)));
54
/// <inheritdoc cref="
SR
.InvalidStringMarshallingConfigurationMessageLibraryImport"/>
58
GetResourceString(nameof(
SR
.InvalidLibraryImportAttributeUsageTitle)),
59
GetResourceString(nameof(
SR
.InvalidStringMarshallingConfigurationMessageLibraryImport)),
63
description: GetResourceString(nameof(
SR
.InvalidStringMarshallingConfigurationDescription)));
65
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageParameterLibraryImport"/>
69
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
70
GetResourceString(nameof(
SR
.TypeNotSupportedMessageParameterLibraryImport)),
74
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionLibraryImport)));
76
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageReturnLibraryImport"/>
80
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
81
GetResourceString(nameof(
SR
.TypeNotSupportedMessageReturnLibraryImport)),
85
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionLibraryImport)));
87
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageParameterWithDetails"/>
91
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
92
GetResourceString(nameof(
SR
.TypeNotSupportedMessageParameterWithDetails)),
96
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionLibraryImport)));
98
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageReturnWithDetails"/>
102
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
103
GetResourceString(nameof(
SR
.TypeNotSupportedMessageReturnWithDetails)),
107
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionLibraryImport)));
109
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageParameterLibraryImport"/>
113
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleLibraryImport)),
114
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageParameterLibraryImport)),
118
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionLibraryImport)));
120
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageReturnLibraryImport"/>
124
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleLibraryImport)),
125
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageReturnLibraryImport)),
129
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionLibraryImport)));
131
/// <inheritdoc cref="
SR
.MarshalAsConfigurationNotSupportedMessageParameterLibraryImport"/>
135
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleLibraryImport)),
136
GetResourceString(nameof(
SR
.MarshalAsConfigurationNotSupportedMessageParameterLibraryImport)),
140
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionLibraryImport)));
142
/// <inheritdoc cref="
SR
.MarshalAsConfigurationNotSupportedMessageReturnLibraryImport"/>
146
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleLibraryImport)),
147
GetResourceString(nameof(
SR
.MarshalAsConfigurationNotSupportedMessageReturnLibraryImport)),
151
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionLibraryImport)));
153
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageLibraryImport"/>
157
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleLibraryImport)),
158
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageLibraryImport)),
162
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionLibraryImport)));
164
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageValueLibraryImport"/>
168
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleLibraryImport)),
169
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageValueLibraryImport)),
173
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionLibraryImport)));
175
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageMarshallingInfoLibraryImport"/>
179
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleLibraryImport)),
180
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageMarshallingInfoLibraryImport)),
184
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionLibraryImport)));
186
/// <inheritdoc cref="
SR
.CannotForwardToDllImportMessage"/>
190
GetResourceString(nameof(
SR
.CannotForwardToDllImportTitle)),
191
GetResourceString(nameof(
SR
.CannotForwardToDllImportMessage)),
195
description: GetResourceString(nameof(
SR
.CannotForwardToDllImportDescription)));
197
/// <inheritdoc cref="
SR
.RequiresAllowUnsafeBlocksMessageLibraryImport"/>
201
GetResourceString(nameof(
SR
.RequiresAllowUnsafeBlocksTitleLibraryImport)),
202
GetResourceString(nameof(
SR
.RequiresAllowUnsafeBlocksMessageLibraryImport)),
206
description: GetResourceString(nameof(
SR
.RequiresAllowUnsafeBlocksDescriptionLibraryImport)));
208
/// <inheritdoc cref="
SR
.RequiresExplicitSafetyModifierMessageLibraryImport"/>
212
GetResourceString(nameof(
SR
.RequiresExplicitSafetyModifierTitleLibraryImport)),
213
GetResourceString(nameof(
SR
.RequiresExplicitSafetyModifierMessageLibraryImport)),
217
description: GetResourceString(nameof(
SR
.RequiresExplicitSafetyModifierDescriptionLibraryImport)));
219
/// <inheritdoc cref="
SR
.UnnecessaryParameterMarshallingInfoMessage"/>
223
GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoTitle)),
224
GetResourceString(nameof(
SR
.UnnecessaryParameterMarshallingInfoMessage)),
228
description: GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoDescription)),
234
/// <inheritdoc cref="
SR
.UnnecessaryMarshallingInfoDescription"/>
238
GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoTitle)),
239
GetResourceString(nameof(
SR
.UnnecessaryReturnMarshallingInfoMessage)),
243
description: GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoDescription)),
249
/// <inheritdoc cref="
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam"/>
253
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)),
254
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam)),
259
/// <inheritdoc cref="
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue"/>
263
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)),
264
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue)),
269
/// <inheritdoc cref="
SR
.LibraryImportUsageDoesNotFollowBestPracticesMessageWithDetails"/>
273
GetResourceString(nameof(
SR
.LibraryImportUsageDoesNotFollowBestPracticesTitle)),
274
GetResourceString(nameof(
SR
.LibraryImportUsageDoesNotFollowBestPracticesMessageWithDetails)),
315
return new LocalizableResourceString(resourceName,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.LibraryImportGenerator.Downlevel.SR));