203 references to SR
Microsoft.Interop.ComInterfaceGenerator (203)
Analyzers\AddGeneratedComClassFixer.cs (2)
53
?
SR
.AddGeneratedComClassAttributeTitle
54
:
SR
.AddGeneratedComClassAddUnsafe;
Analyzers\AnalyzerDiagnostics.cs (16)
31
return new LocalizableResourceString(resourceName,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
37
GetResourceString(nameof(
SR
.ConvertToGeneratedComInterfaceTitle)),
38
GetResourceString(nameof(
SR
.ConvertToGeneratedComInterfaceMessage)),
42
description: GetResourceString(nameof(
SR
.ConvertToGeneratedComInterfaceDescription)));
47
GetResourceString(nameof(
SR
.AddGeneratedComClassAttributeTitle)),
48
GetResourceString(nameof(
SR
.AddGeneratedComClassAttributeMessage)),
52
description: GetResourceString(nameof(
SR
.AddGeneratedComClassAttributeDescription)));
57
GetResourceString(nameof(
SR
.ComHostingDoesNotSupportGeneratedComInterfaceTitle)),
58
GetResourceString(nameof(
SR
.ComHostingDoesNotSupportGeneratedComInterfaceMessage)),
62
description: GetResourceString(nameof(
SR
.ComHostingDoesNotSupportGeneratedComInterfaceDescription)));
67
GetResourceString(nameof(
SR
.RuntimeComApisDoNotSupportSourceGeneratedComTitle)),
68
GetResourceString(nameof(
SR
.RuntimeComApisDoNotSupportSourceGeneratedComMessage)),
72
description: GetResourceString(nameof(
SR
.RuntimeComApisDoNotSupportSourceGeneratedComDescription)));
77
GetResourceString(nameof(
SR
.CastsBetweenRuntimeComAndSourceGeneratedComNotSupportedTitle)),
78
GetResourceString(nameof(
SR
.CastsBetweenRuntimeComAndSourceGeneratedComNotSupportedMessage)),
82
description: GetResourceString(nameof(
SR
.CastsBetweenRuntimeComAndSourceGeneratedComNotSupportedDescription)));
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
75
GeneratorDiagnosticsBag diagnostics = new(new DiagnosticDescriptorProvider(), new MethodSignatureDiagnosticLocations((MethodDeclarationSyntax)method.DeclaringSyntaxReferences[0].GetSyntax()),
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (3)
31
?
SR
.ConvertToGeneratedComInterfaceAddUnsafe
32
:
SR
.ConvertToGeneratedComInterfaceTitle;
94
WarningAnnotation.Create(
SR
.ConvertComInterfaceMayProduceInvalidCode));
ComInterfaceGenerator.cs (1)
263
var generatorDiagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
ComInterfaceInfo.cs (5)
210
SR
.InvalidStringMarshallingConfigurationMissingCustomType);
229
SR
.InvalidStringMarshallingConfigurationNotCustom);
244
SR
.GeneratedComInterfaceStringMarshallingMustMatchBase);
266
SR
.OneWrapperMustBeGenerated);
280
SR
.BaseInterfaceMustGenerateAtLeastSameWrappers);
GeneratorDiagnostics.cs (166)
35
/// <inheritdoc cref="
SR
.RequiresAllowUnsafeBlocksMessageCom"/>
39
GetResourceString(nameof(
SR
.RequiresAllowUnsafeBlocksTitleCom)),
40
GetResourceString(nameof(
SR
.RequiresAllowUnsafeBlocksMessageCom)),
44
description: GetResourceString(nameof(
SR
.RequiresAllowUnsafeBlocksDescriptionCom)));
46
/// <inheritdoc cref="
SR
.InvalidAttributedMethodSignatureMessageCom"/>
50
GetResourceString(nameof(
SR
.InvalidVirtualMethodIndexAttributeUsage)),
51
GetResourceString(nameof(
SR
.InvalidAttributedMethodSignatureMessageCom)),
55
description: GetResourceString(nameof(
SR
.InvalidAttributedMethodDescriptionCom)));
57
/// <inheritdoc cref="
SR
.InvalidAttributedMethodContainingTypeMissingModifiersMessageCom"/>
61
GetResourceString(nameof(
SR
.InvalidVirtualMethodIndexAttributeUsage)),
62
GetResourceString(nameof(
SR
.InvalidAttributedMethodContainingTypeMissingModifiersMessageCom)),
66
description: GetResourceString(nameof(
SR
.InvalidAttributedMethodDescriptionCom)));
68
/// <inheritdoc cref="
SR
.InvalidGeneratedComInterfaceUsageMissingPartialModifier"/>
72
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
73
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceUsageMissingPartialModifier)),
77
description: GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageDescription)));
79
/// <inheritdoc cref="
SR
.InvalidAttributedMethodContainingTypeMissingUnmanagedObjectUnwrapperAttributeMessage"/>
83
GetResourceString(nameof(
SR
.InvalidVirtualMethodIndexAttributeUsage)),
84
GetResourceString(nameof(
SR
.InvalidAttributedMethodContainingTypeMissingUnmanagedObjectUnwrapperAttributeMessage)),
88
description: GetResourceString(nameof(
SR
.InvalidAttributedMethodDescriptionCom)));
90
/// <inheritdoc cref="
SR
.InvalidStringMarshallingConfigurationOnInterfaceMessage"/>
94
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
95
GetResourceString(nameof(
SR
.InvalidStringMarshallingConfigurationOnInterfaceMessage)),
99
description: GetResourceString(nameof(
SR
.GeneratedComInterfaceStringMarshallingMustMatchBase)));
101
/// <inheritdoc cref="
SR
.InvalidOptionsOnInterfaceMessage"/>
105
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
106
GetResourceString(nameof(
SR
.InvalidOptionsOnInterfaceMessage)),
110
description: GetResourceString(nameof(
SR
.InvalidOptionsOnInterfaceDescription)));
112
/// <inheritdoc cref="
SR
.InvalidStringMarshallingConfigurationOnMethodMessage"/>
116
GetResourceString(nameof(
SR
.InvalidVirtualMethodIndexAttributeUsage)),
117
GetResourceString(nameof(
SR
.InvalidStringMarshallingConfigurationOnMethodMessage)),
121
description: GetResourceString(nameof(
SR
.InvalidStringMarshallingConfigurationDescription)));
123
/// <inheritdoc cref="
SR
.InvalidStringMarshallingConfigurationOnInterfaceMessage"/>
127
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
128
GetResourceString(nameof(
SR
.InvalidStringMarshallingConfigurationOnInterfaceMessage)),
132
description: GetResourceString(nameof(
SR
.InvalidStringMarshallingConfigurationDescription)));
134
/// <inheritdoc cref="
SR
.StringMarshallingCustomTypeNotAccessibleByGeneratedCode"/>
138
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
139
GetResourceString(nameof(
SR
.StringMarshallingCustomTypeNotAccessibleByGeneratedCode)),
144
/// <inheritdoc cref="
SR
.InvalidExceptionMarshallingConfigurationMessage"/>
148
GetResourceString(nameof(
SR
.InvalidVirtualMethodIndexAttributeUsage)),
149
GetResourceString(nameof(
SR
.InvalidExceptionMarshallingConfigurationMessage)),
153
description: GetResourceString(nameof(
SR
.InvalidExceptionMarshallingConfigurationDescription)));
155
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageParameterCom"/>
159
GetResourceString(nameof(
SR
.TypeNotSupportedTitleCom)),
160
GetResourceString(nameof(
SR
.TypeNotSupportedMessageParameterCom)),
164
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionCom)));
166
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageReturnCom"/>
170
GetResourceString(nameof(
SR
.TypeNotSupportedTitleCom)),
171
GetResourceString(nameof(
SR
.TypeNotSupportedMessageReturnCom)),
175
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionCom)));
177
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageParameterWithDetails"/>
181
GetResourceString(nameof(
SR
.TypeNotSupportedTitleCom)),
182
GetResourceString(nameof(
SR
.TypeNotSupportedMessageParameterWithDetails)),
186
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionCom)));
188
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageReturnWithDetails"/>
192
GetResourceString(nameof(
SR
.TypeNotSupportedTitleCom)),
193
GetResourceString(nameof(
SR
.TypeNotSupportedMessageReturnWithDetails)),
197
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionCom)));
199
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageParameterCom"/>
203
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
204
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageParameterCom)),
208
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
210
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageReturnCom"/>
214
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
215
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageReturnCom)),
219
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
221
/// <inheritdoc cref="
SR
.MarshalAsConfigurationNotSupportedMessageParameterCom"/>
225
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
226
GetResourceString(nameof(
SR
.MarshalAsConfigurationNotSupportedMessageParameterCom)),
230
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
232
/// <inheritdoc cref="
SR
.MarshalAsConfigurationNotSupportedMessageReturnCom"/>
236
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
237
GetResourceString(nameof(
SR
.MarshalAsConfigurationNotSupportedMessageReturnCom)),
241
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
243
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageCom"/>
247
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
248
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageCom)),
252
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
254
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageValueCom"/>
258
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
259
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageValueCom)),
263
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
265
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageMarshallingInfoCom"/>
269
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
270
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageMarshallingInfoCom)),
274
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
276
/// <inheritdoc cref="
SR
.MethodNotDeclaredInAttributedInterfaceMessage"/>
280
GetResourceString(nameof(
SR
.MethodNotDeclaredInAttributedInterfaceTitle)),
281
GetResourceString(nameof(
SR
.MethodNotDeclaredInAttributedInterfaceMessage)),
285
description: GetResourceString(nameof(
SR
.MethodNotDeclaredInAttributedInterfaceDescription)));
287
/// <inheritdoc cref="
SR
.InstancePropertyDeclaredInInterfaceMessage"/>
291
GetResourceString(nameof(
SR
.InstancePropertyDeclaredInInterfaceTitle)),
292
GetResourceString(nameof(
SR
.InstancePropertyDeclaredInInterfaceMessage)),
296
description: GetResourceString(nameof(
SR
.InstancePropertyDeclaredInInterfaceDescription)));
298
/// <inheritdoc cref="
SR
.InstanceEventDeclaredInInterfaceMessage"/>
302
GetResourceString(nameof(
SR
.InstanceEventDeclaredInInterfaceTitle)),
303
GetResourceString(nameof(
SR
.InstanceEventDeclaredInInterfaceMessage)),
307
description: GetResourceString(nameof(
SR
.InstanceEventDeclaredInInterfaceDescription)));
309
/// <inheritdoc cref="
SR
.InvalidGeneratedComInterfaceAttributeUsageInterfaceNotAccessible"/>
313
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
314
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageInterfaceNotAccessible)),
318
description: GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageDescription)));
320
/// <inheritdoc cref="
SR
.InvalidGeneratedComInterfaceAttributeUsageMissingGuidAttribute"/>
324
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
325
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageMissingGuidAttribute)),
329
description: GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageDescription)));
331
/// <inheritdoc cref="
SR
.InvalidGeneratedComInterfaceAttributeUsageInterfaceIsGeneric"/>
335
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
336
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageInterfaceIsGeneric)),
340
description: GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageDescription)));
342
/// <inheritdoc cref="
SR
.MultipleComInterfaceBaseTypesMessage"/>
346
GetResourceString(nameof(
SR
.MultipleComInterfaceBaseTypesTitle)),
347
GetResourceString(nameof(
SR
.MultipleComInterfaceBaseTypesMessage)),
351
description: GetResourceString(nameof(
SR
.MultipleComInterfaceBaseTypesDescription)));
353
/// <inheritdoc cref="
SR
.AnalysisFailedMethodMessage"/>
357
GetResourceString(nameof(
SR
.AnalysisFailedTitle)),
358
GetResourceString(nameof(
SR
.AnalysisFailedMethodMessage)),
362
description: GetResourceString(nameof(
SR
.AnalysisFailedDescription)));
364
/// <inheritdoc cref="
SR
.AnalysisFailedInterfaceMessage"/>
368
GetResourceString(nameof(
SR
.AnalysisFailedTitle)),
369
GetResourceString(nameof(
SR
.AnalysisFailedInterfaceMessage)),
373
description: GetResourceString(nameof(
SR
.AnalysisFailedDescription)));
375
/// <inheritdoc cref="
SR
.BaseInterfaceCannotBeGeneratedMessage"/>
379
GetResourceString(nameof(
SR
.BaseInterfaceCannotBeGeneratedTitle)),
380
GetResourceString(nameof(
SR
.BaseInterfaceCannotBeGeneratedMessage)),
384
description: GetResourceString(nameof(
SR
.BaseInterfaceCannotBeGeneratedDescription)));
386
/// <inheritdoc cref="
SR
.InvalidGeneratedComClassAttributeUsageMissingPartialModifier"/>
390
GetResourceString(nameof(
SR
.InvalidGeneratedComClassAttributeUsageTitle)),
391
GetResourceString(nameof(
SR
.InvalidGeneratedComClassAttributeUsageMissingPartialModifier)),
395
description: GetResourceString(nameof(
SR
.InvalidGeneratedComClassAttributeUsageDescription)));
397
/// <inheritdoc cref="
SR
.InterfaceTypeNotSupportedMessage"/>
401
GetResourceString(nameof(
SR
.InterfaceTypeNotSupportedTitle)),
402
GetResourceString(nameof(
SR
.InterfaceTypeNotSupportedMessage)),
406
description: GetResourceString(nameof(
SR
.InterfaceTypeNotSupportedMessage)));
408
/// <inheritdoc cref="
SR
.ClassDoesNotImplementAnyGeneratedComInterfacesMessage"/>
412
GetResourceString(nameof(
SR
.InvalidGeneratedComClassAttributeUsageTitle)),
413
GetResourceString(nameof(
SR
.ClassDoesNotImplementAnyGeneratedComInterfacesMessage)),
417
description: GetResourceString(nameof(
SR
.ClassDoesNotImplementAnyGeneratedComInterfacesDescription)));
419
/// <inheritdoc cref="
SR
.UnnecessaryParameterMarshallingInfoMessage"/>
423
GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoTitle)),
424
GetResourceString(nameof(
SR
.UnnecessaryParameterMarshallingInfoMessage)),
428
description: GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoDescription)),
434
/// <inheritdoc cref="
SR
.UnnecessaryReturnMarshallingInfoMessage"/>
438
GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoTitle)),
439
GetResourceString(nameof(
SR
.UnnecessaryReturnMarshallingInfoMessage)),
443
description: GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoDescription)),
449
/// <inheritdoc cref="
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam"/>
453
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)),
454
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam)),
459
/// <inheritdoc cref="
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue"/>
463
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)),
464
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue)),
469
/// <inheritdoc cref="
SR
.ComMethodReturningIntWillBeOutParameterMessage"/>
473
GetResourceString(nameof(
SR
.ComMethodReturningIntWillBeOutParameterTitle)),
474
GetResourceString(nameof(
SR
.ComMethodReturningIntWillBeOutParameterMessage)),
479
/// <inheritdoc cref="
SR
.HResultTypeWillBeTreatedAsStructMessage"/>
483
GetResourceString(nameof(
SR
.HResultTypeWillBeTreatedAsStructTitle)),
484
GetResourceString(nameof(
SR
.HResultTypeWillBeTreatedAsStructMessage)),
489
/// <inheritdoc cref="
SR
.ComInterfaceUsageDoesNotFollowBestPracticesMessageWithDetails"/>
493
GetResourceString(nameof(
SR
.ComInterfaceUsageDoesNotFollowBestPracticesTitle)),
494
GetResourceString(nameof(
SR
.ComInterfaceUsageDoesNotFollowBestPracticesMessageWithDetails)),
500
/// <inheritdoc cref="
SR
.BaseInterfaceDefinedInOtherAssemblyMessage" />
504
GetResourceString(nameof(
SR
.BaseInterfaceDefinedInOtherAssemblyTitle)),
505
GetResourceString(nameof(
SR
.BaseInterfaceDefinedInOtherAssemblyMessage)),
549
return new LocalizableResourceString(resourceName,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
VirtualMethodPointerStubGenerator.cs (3)
27
var diagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), methodStub.DiagnosticLocation,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
134
var diagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), methodStub.DiagnosticLocation,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
264
var diagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), method.DiagnosticLocation,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
VtableIndexStubGenerator.cs (6)
234
var generatorDiagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
254
virtualMethodIndexAttr, symbol.Name,
SR
.InvalidStringMarshallingConfigurationMissingCustomType);
261
virtualMethodIndexAttr, symbol.Name,
SR
.InvalidStringMarshallingConfigurationNotCustom);
332
virtualMethodIndexAttr, symbol.Name,
SR
.InvalidExceptionMarshallingConfigurationMissingCustomType);
340
virtualMethodIndexAttr, symbol.Name,
SR
.InvalidExceptionMarshallingConfigurationNotCustom);
361
virtualMethodIndexAttr, symbol.Name,
SR
.InvalidExceptionMarshallingValue);