209 references to SR
Microsoft.Interop.ComInterfaceGenerator (209)
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)
275
var generatorDiagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
ComInterfaceInfo.cs (5)
213
SR
.InvalidStringMarshallingConfigurationMissingCustomType);
232
SR
.InvalidStringMarshallingConfigurationNotCustom);
247
SR
.GeneratedComInterfaceStringMarshallingMustMatchBase);
269
SR
.OneWrapperMustBeGenerated);
283
SR
.BaseInterfaceMustGenerateAtLeastSameWrappers);
GeneratorDiagnostics.cs (172)
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
.ExceptionToUnmanagedMarshallerNotAccessibleByGeneratedCode"/>
148
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
149
GetResourceString(nameof(
SR
.ExceptionToUnmanagedMarshallerNotAccessibleByGeneratedCode)),
154
/// <inheritdoc cref="
SR
.InvalidExceptionMarshallingConfigurationMessage"/>
158
GetResourceString(nameof(
SR
.InvalidVirtualMethodIndexAttributeUsage)),
159
GetResourceString(nameof(
SR
.InvalidExceptionMarshallingConfigurationMessage)),
163
description: GetResourceString(nameof(
SR
.InvalidExceptionMarshallingConfigurationDescription)));
165
/// <inheritdoc cref="
SR
.InvalidExceptionToUnmanagedMarshallerType"/>
169
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
170
GetResourceString(nameof(
SR
.InvalidExceptionToUnmanagedMarshallerType)),
175
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageParameterCom"/>
179
GetResourceString(nameof(
SR
.TypeNotSupportedTitleCom)),
180
GetResourceString(nameof(
SR
.TypeNotSupportedMessageParameterCom)),
184
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionCom)));
186
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageReturnCom"/>
190
GetResourceString(nameof(
SR
.TypeNotSupportedTitleCom)),
191
GetResourceString(nameof(
SR
.TypeNotSupportedMessageReturnCom)),
195
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionCom)));
197
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageParameterWithDetails"/>
201
GetResourceString(nameof(
SR
.TypeNotSupportedTitleCom)),
202
GetResourceString(nameof(
SR
.TypeNotSupportedMessageParameterWithDetails)),
206
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionCom)));
208
/// <inheritdoc cref="
SR
.TypeNotSupportedMessageReturnWithDetails"/>
212
GetResourceString(nameof(
SR
.TypeNotSupportedTitleCom)),
213
GetResourceString(nameof(
SR
.TypeNotSupportedMessageReturnWithDetails)),
217
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescriptionCom)));
219
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageParameterCom"/>
223
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
224
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageParameterCom)),
228
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
230
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageReturnCom"/>
234
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
235
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageReturnCom)),
239
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
241
/// <inheritdoc cref="
SR
.MarshalAsConfigurationNotSupportedMessageParameterCom"/>
245
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
246
GetResourceString(nameof(
SR
.MarshalAsConfigurationNotSupportedMessageParameterCom)),
250
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
252
/// <inheritdoc cref="
SR
.MarshalAsConfigurationNotSupportedMessageReturnCom"/>
256
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
257
GetResourceString(nameof(
SR
.MarshalAsConfigurationNotSupportedMessageReturnCom)),
261
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
263
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageCom"/>
267
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
268
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageCom)),
272
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
274
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageValueCom"/>
278
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
279
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageValueCom)),
283
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
285
/// <inheritdoc cref="
SR
.ConfigurationNotSupportedMessageMarshallingInfoCom"/>
289
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitleCom)),
290
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageMarshallingInfoCom)),
294
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescriptionCom)));
296
/// <inheritdoc cref="
SR
.MethodNotDeclaredInAttributedInterfaceMessage"/>
300
GetResourceString(nameof(
SR
.MethodNotDeclaredInAttributedInterfaceTitle)),
301
GetResourceString(nameof(
SR
.MethodNotDeclaredInAttributedInterfaceMessage)),
305
description: GetResourceString(nameof(
SR
.MethodNotDeclaredInAttributedInterfaceDescription)));
307
/// <inheritdoc cref="
SR
.InstancePropertyDeclaredInInterfaceMessage"/>
311
GetResourceString(nameof(
SR
.InstancePropertyDeclaredInInterfaceTitle)),
312
GetResourceString(nameof(
SR
.InstancePropertyDeclaredInInterfaceMessage)),
316
description: GetResourceString(nameof(
SR
.InstancePropertyDeclaredInInterfaceDescription)));
318
/// <inheritdoc cref="
SR
.InstanceEventDeclaredInInterfaceMessage"/>
322
GetResourceString(nameof(
SR
.InstanceEventDeclaredInInterfaceTitle)),
323
GetResourceString(nameof(
SR
.InstanceEventDeclaredInInterfaceMessage)),
327
description: GetResourceString(nameof(
SR
.InstanceEventDeclaredInInterfaceDescription)));
329
/// <inheritdoc cref="
SR
.InvalidGeneratedComInterfaceAttributeUsageInterfaceNotAccessible"/>
333
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
334
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageInterfaceNotAccessible)),
338
description: GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageDescription)));
340
/// <inheritdoc cref="
SR
.InvalidGeneratedComInterfaceAttributeUsageMissingGuidAttribute"/>
344
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
345
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageMissingGuidAttribute)),
349
description: GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageDescription)));
351
/// <inheritdoc cref="
SR
.InvalidGeneratedComInterfaceAttributeUsageInterfaceIsGeneric"/>
355
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageTitle)),
356
GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageInterfaceIsGeneric)),
360
description: GetResourceString(nameof(
SR
.InvalidGeneratedComInterfaceAttributeUsageDescription)));
362
/// <inheritdoc cref="
SR
.MultipleComInterfaceBaseTypesMessage"/>
366
GetResourceString(nameof(
SR
.MultipleComInterfaceBaseTypesTitle)),
367
GetResourceString(nameof(
SR
.MultipleComInterfaceBaseTypesMessage)),
371
description: GetResourceString(nameof(
SR
.MultipleComInterfaceBaseTypesDescription)));
373
/// <inheritdoc cref="
SR
.AnalysisFailedMethodMessage"/>
377
GetResourceString(nameof(
SR
.AnalysisFailedTitle)),
378
GetResourceString(nameof(
SR
.AnalysisFailedMethodMessage)),
382
description: GetResourceString(nameof(
SR
.AnalysisFailedDescription)));
384
/// <inheritdoc cref="
SR
.AnalysisFailedInterfaceMessage"/>
388
GetResourceString(nameof(
SR
.AnalysisFailedTitle)),
389
GetResourceString(nameof(
SR
.AnalysisFailedInterfaceMessage)),
393
description: GetResourceString(nameof(
SR
.AnalysisFailedDescription)));
395
/// <inheritdoc cref="
SR
.BaseInterfaceCannotBeGeneratedMessage"/>
399
GetResourceString(nameof(
SR
.BaseInterfaceCannotBeGeneratedTitle)),
400
GetResourceString(nameof(
SR
.BaseInterfaceCannotBeGeneratedMessage)),
404
description: GetResourceString(nameof(
SR
.BaseInterfaceCannotBeGeneratedDescription)));
406
/// <inheritdoc cref="
SR
.InvalidGeneratedComClassAttributeUsageMissingPartialModifier"/>
410
GetResourceString(nameof(
SR
.InvalidGeneratedComClassAttributeUsageTitle)),
411
GetResourceString(nameof(
SR
.InvalidGeneratedComClassAttributeUsageMissingPartialModifier)),
415
description: GetResourceString(nameof(
SR
.InvalidGeneratedComClassAttributeUsageDescription)));
417
/// <inheritdoc cref="
SR
.InterfaceTypeNotSupportedMessage"/>
421
GetResourceString(nameof(
SR
.InterfaceTypeNotSupportedTitle)),
422
GetResourceString(nameof(
SR
.InterfaceTypeNotSupportedMessage)),
426
description: GetResourceString(nameof(
SR
.InterfaceTypeNotSupportedMessage)));
428
/// <inheritdoc cref="
SR
.ClassDoesNotImplementAnyGeneratedComInterfacesMessage"/>
432
GetResourceString(nameof(
SR
.InvalidGeneratedComClassAttributeUsageTitle)),
433
GetResourceString(nameof(
SR
.ClassDoesNotImplementAnyGeneratedComInterfacesMessage)),
437
description: GetResourceString(nameof(
SR
.ClassDoesNotImplementAnyGeneratedComInterfacesDescription)));
439
/// <inheritdoc cref="
SR
.UnnecessaryParameterMarshallingInfoMessage"/>
443
GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoTitle)),
444
GetResourceString(nameof(
SR
.UnnecessaryParameterMarshallingInfoMessage)),
448
description: GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoDescription)),
454
/// <inheritdoc cref="
SR
.UnnecessaryReturnMarshallingInfoMessage"/>
458
GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoTitle)),
459
GetResourceString(nameof(
SR
.UnnecessaryReturnMarshallingInfoMessage)),
463
description: GetResourceString(nameof(
SR
.UnnecessaryMarshallingInfoDescription)),
469
/// <inheritdoc cref="
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam"/>
473
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)),
474
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam)),
479
/// <inheritdoc cref="
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue"/>
483
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)),
484
GetResourceString(nameof(
SR
.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue)),
489
/// <inheritdoc cref="
SR
.ComMethodReturningIntWillBeOutParameterMessage"/>
493
GetResourceString(nameof(
SR
.ComMethodReturningIntWillBeOutParameterTitle)),
494
GetResourceString(nameof(
SR
.ComMethodReturningIntWillBeOutParameterMessage)),
499
/// <inheritdoc cref="
SR
.HResultTypeWillBeTreatedAsStructMessage"/>
503
GetResourceString(nameof(
SR
.HResultTypeWillBeTreatedAsStructTitle)),
504
GetResourceString(nameof(
SR
.HResultTypeWillBeTreatedAsStructMessage)),
509
/// <inheritdoc cref="
SR
.ComInterfaceUsageDoesNotFollowBestPracticesMessageWithDetails"/>
513
GetResourceString(nameof(
SR
.ComInterfaceUsageDoesNotFollowBestPracticesTitle)),
514
GetResourceString(nameof(
SR
.ComInterfaceUsageDoesNotFollowBestPracticesMessageWithDetails)),
520
/// <inheritdoc cref="
SR
.BaseInterfaceDefinedInOtherAssemblyMessage" />
524
GetResourceString(nameof(
SR
.BaseInterfaceDefinedInOtherAssemblyTitle)),
525
GetResourceString(nameof(
SR
.BaseInterfaceDefinedInOtherAssemblyMessage)),
569
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);