209 references to SR
Microsoft.Interop.ComInterfaceGenerator (209)
Analyzers\AddGeneratedComClassFixer.cs (2)
53? SR.AddGeneratedComClassAttributeTitle 54: SR.AddGeneratedComClassAddUnsafe;
Analyzers\AnalyzerDiagnostics.cs (16)
31return new LocalizableResourceString(resourceName, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR)); 37GetResourceString(nameof(SR.ConvertToGeneratedComInterfaceTitle)), 38GetResourceString(nameof(SR.ConvertToGeneratedComInterfaceMessage)), 42description: GetResourceString(nameof(SR.ConvertToGeneratedComInterfaceDescription))); 47GetResourceString(nameof(SR.AddGeneratedComClassAttributeTitle)), 48GetResourceString(nameof(SR.AddGeneratedComClassAttributeMessage)), 52description: GetResourceString(nameof(SR.AddGeneratedComClassAttributeDescription))); 57GetResourceString(nameof(SR.ComHostingDoesNotSupportGeneratedComInterfaceTitle)), 58GetResourceString(nameof(SR.ComHostingDoesNotSupportGeneratedComInterfaceMessage)), 62description: GetResourceString(nameof(SR.ComHostingDoesNotSupportGeneratedComInterfaceDescription))); 67GetResourceString(nameof(SR.RuntimeComApisDoNotSupportSourceGeneratedComTitle)), 68GetResourceString(nameof(SR.RuntimeComApisDoNotSupportSourceGeneratedComMessage)), 72description: GetResourceString(nameof(SR.RuntimeComApisDoNotSupportSourceGeneratedComDescription))); 77GetResourceString(nameof(SR.CastsBetweenRuntimeComAndSourceGeneratedComNotSupportedTitle)), 78GetResourceString(nameof(SR.CastsBetweenRuntimeComAndSourceGeneratedComNotSupportedMessage)), 82description: GetResourceString(nameof(SR.CastsBetweenRuntimeComAndSourceGeneratedComNotSupportedDescription)));
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
75GeneratorDiagnosticsBag 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; 94WarningAnnotation.Create(SR.ConvertComInterfaceMayProduceInvalidCode));
ComInterfaceGenerator.cs (1)
275var generatorDiagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), locations, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
ComInterfaceInfo.cs (5)
213SR.InvalidStringMarshallingConfigurationMissingCustomType); 232SR.InvalidStringMarshallingConfigurationNotCustom); 247SR.GeneratedComInterfaceStringMarshallingMustMatchBase); 269SR.OneWrapperMustBeGenerated); 283SR.BaseInterfaceMustGenerateAtLeastSameWrappers);
GeneratorDiagnostics.cs (172)
35/// <inheritdoc cref="SR.RequiresAllowUnsafeBlocksMessageCom"/> 39GetResourceString(nameof(SR.RequiresAllowUnsafeBlocksTitleCom)), 40GetResourceString(nameof(SR.RequiresAllowUnsafeBlocksMessageCom)), 44description: GetResourceString(nameof(SR.RequiresAllowUnsafeBlocksDescriptionCom))); 46/// <inheritdoc cref="SR.InvalidAttributedMethodSignatureMessageCom"/> 50GetResourceString(nameof(SR.InvalidVirtualMethodIndexAttributeUsage)), 51GetResourceString(nameof(SR.InvalidAttributedMethodSignatureMessageCom)), 55description: GetResourceString(nameof(SR.InvalidAttributedMethodDescriptionCom))); 57/// <inheritdoc cref="SR.InvalidAttributedMethodContainingTypeMissingModifiersMessageCom"/> 61GetResourceString(nameof(SR.InvalidVirtualMethodIndexAttributeUsage)), 62GetResourceString(nameof(SR.InvalidAttributedMethodContainingTypeMissingModifiersMessageCom)), 66description: GetResourceString(nameof(SR.InvalidAttributedMethodDescriptionCom))); 68/// <inheritdoc cref="SR.InvalidGeneratedComInterfaceUsageMissingPartialModifier"/> 72GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 73GetResourceString(nameof(SR.InvalidGeneratedComInterfaceUsageMissingPartialModifier)), 77description: GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageDescription))); 79/// <inheritdoc cref="SR.InvalidAttributedMethodContainingTypeMissingUnmanagedObjectUnwrapperAttributeMessage"/> 83GetResourceString(nameof(SR.InvalidVirtualMethodIndexAttributeUsage)), 84GetResourceString(nameof(SR.InvalidAttributedMethodContainingTypeMissingUnmanagedObjectUnwrapperAttributeMessage)), 88description: GetResourceString(nameof(SR.InvalidAttributedMethodDescriptionCom))); 90/// <inheritdoc cref="SR.InvalidStringMarshallingConfigurationOnInterfaceMessage"/> 94GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 95GetResourceString(nameof(SR.InvalidStringMarshallingConfigurationOnInterfaceMessage)), 99description: GetResourceString(nameof(SR.GeneratedComInterfaceStringMarshallingMustMatchBase))); 101/// <inheritdoc cref="SR.InvalidOptionsOnInterfaceMessage"/> 105GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 106GetResourceString(nameof(SR.InvalidOptionsOnInterfaceMessage)), 110description: GetResourceString(nameof(SR.InvalidOptionsOnInterfaceDescription))); 112/// <inheritdoc cref="SR.InvalidStringMarshallingConfigurationOnMethodMessage"/> 116GetResourceString(nameof(SR.InvalidVirtualMethodIndexAttributeUsage)), 117GetResourceString(nameof(SR.InvalidStringMarshallingConfigurationOnMethodMessage)), 121description: GetResourceString(nameof(SR.InvalidStringMarshallingConfigurationDescription))); 123/// <inheritdoc cref="SR.InvalidStringMarshallingConfigurationOnInterfaceMessage"/> 127GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 128GetResourceString(nameof(SR.InvalidStringMarshallingConfigurationOnInterfaceMessage)), 132description: GetResourceString(nameof(SR.InvalidStringMarshallingConfigurationDescription))); 134/// <inheritdoc cref="SR.StringMarshallingCustomTypeNotAccessibleByGeneratedCode"/> 138GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 139GetResourceString(nameof(SR.StringMarshallingCustomTypeNotAccessibleByGeneratedCode)), 144/// <inheritdoc cref="SR.ExceptionToUnmanagedMarshallerNotAccessibleByGeneratedCode"/> 148GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 149GetResourceString(nameof(SR.ExceptionToUnmanagedMarshallerNotAccessibleByGeneratedCode)), 154/// <inheritdoc cref="SR.InvalidExceptionMarshallingConfigurationMessage"/> 158GetResourceString(nameof(SR.InvalidVirtualMethodIndexAttributeUsage)), 159GetResourceString(nameof(SR.InvalidExceptionMarshallingConfigurationMessage)), 163description: GetResourceString(nameof(SR.InvalidExceptionMarshallingConfigurationDescription))); 165/// <inheritdoc cref="SR.InvalidExceptionToUnmanagedMarshallerType"/> 169GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 170GetResourceString(nameof(SR.InvalidExceptionToUnmanagedMarshallerType)), 175/// <inheritdoc cref="SR.TypeNotSupportedMessageParameterCom"/> 179GetResourceString(nameof(SR.TypeNotSupportedTitleCom)), 180GetResourceString(nameof(SR.TypeNotSupportedMessageParameterCom)), 184description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionCom))); 186/// <inheritdoc cref="SR.TypeNotSupportedMessageReturnCom"/> 190GetResourceString(nameof(SR.TypeNotSupportedTitleCom)), 191GetResourceString(nameof(SR.TypeNotSupportedMessageReturnCom)), 195description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionCom))); 197/// <inheritdoc cref="SR.TypeNotSupportedMessageParameterWithDetails"/> 201GetResourceString(nameof(SR.TypeNotSupportedTitleCom)), 202GetResourceString(nameof(SR.TypeNotSupportedMessageParameterWithDetails)), 206description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionCom))); 208/// <inheritdoc cref="SR.TypeNotSupportedMessageReturnWithDetails"/> 212GetResourceString(nameof(SR.TypeNotSupportedTitleCom)), 213GetResourceString(nameof(SR.TypeNotSupportedMessageReturnWithDetails)), 217description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionCom))); 219/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageParameterCom"/> 223GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 224GetResourceString(nameof(SR.ConfigurationNotSupportedMessageParameterCom)), 228description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 230/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageReturnCom"/> 234GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 235GetResourceString(nameof(SR.ConfigurationNotSupportedMessageReturnCom)), 239description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 241/// <inheritdoc cref="SR.MarshalAsConfigurationNotSupportedMessageParameterCom"/> 245GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 246GetResourceString(nameof(SR.MarshalAsConfigurationNotSupportedMessageParameterCom)), 250description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 252/// <inheritdoc cref="SR.MarshalAsConfigurationNotSupportedMessageReturnCom"/> 256GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 257GetResourceString(nameof(SR.MarshalAsConfigurationNotSupportedMessageReturnCom)), 261description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 263/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageCom"/> 267GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 268GetResourceString(nameof(SR.ConfigurationNotSupportedMessageCom)), 272description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 274/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageValueCom"/> 278GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 279GetResourceString(nameof(SR.ConfigurationNotSupportedMessageValueCom)), 283description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 285/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageMarshallingInfoCom"/> 289GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 290GetResourceString(nameof(SR.ConfigurationNotSupportedMessageMarshallingInfoCom)), 294description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 296/// <inheritdoc cref="SR.MethodNotDeclaredInAttributedInterfaceMessage"/> 300GetResourceString(nameof(SR.MethodNotDeclaredInAttributedInterfaceTitle)), 301GetResourceString(nameof(SR.MethodNotDeclaredInAttributedInterfaceMessage)), 305description: GetResourceString(nameof(SR.MethodNotDeclaredInAttributedInterfaceDescription))); 307/// <inheritdoc cref="SR.InstancePropertyDeclaredInInterfaceMessage"/> 311GetResourceString(nameof(SR.InstancePropertyDeclaredInInterfaceTitle)), 312GetResourceString(nameof(SR.InstancePropertyDeclaredInInterfaceMessage)), 316description: GetResourceString(nameof(SR.InstancePropertyDeclaredInInterfaceDescription))); 318/// <inheritdoc cref="SR.InstanceEventDeclaredInInterfaceMessage"/> 322GetResourceString(nameof(SR.InstanceEventDeclaredInInterfaceTitle)), 323GetResourceString(nameof(SR.InstanceEventDeclaredInInterfaceMessage)), 327description: GetResourceString(nameof(SR.InstanceEventDeclaredInInterfaceDescription))); 329/// <inheritdoc cref="SR.InvalidGeneratedComInterfaceAttributeUsageInterfaceNotAccessible"/> 333GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 334GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageInterfaceNotAccessible)), 338description: GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageDescription))); 340/// <inheritdoc cref="SR.InvalidGeneratedComInterfaceAttributeUsageMissingGuidAttribute"/> 344GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 345GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageMissingGuidAttribute)), 349description: GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageDescription))); 351/// <inheritdoc cref="SR.InvalidGeneratedComInterfaceAttributeUsageInterfaceIsGeneric"/> 355GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 356GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageInterfaceIsGeneric)), 360description: GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageDescription))); 362/// <inheritdoc cref="SR.MultipleComInterfaceBaseTypesMessage"/> 366GetResourceString(nameof(SR.MultipleComInterfaceBaseTypesTitle)), 367GetResourceString(nameof(SR.MultipleComInterfaceBaseTypesMessage)), 371description: GetResourceString(nameof(SR.MultipleComInterfaceBaseTypesDescription))); 373/// <inheritdoc cref="SR.AnalysisFailedMethodMessage"/> 377GetResourceString(nameof(SR.AnalysisFailedTitle)), 378GetResourceString(nameof(SR.AnalysisFailedMethodMessage)), 382description: GetResourceString(nameof(SR.AnalysisFailedDescription))); 384/// <inheritdoc cref="SR.AnalysisFailedInterfaceMessage"/> 388GetResourceString(nameof(SR.AnalysisFailedTitle)), 389GetResourceString(nameof(SR.AnalysisFailedInterfaceMessage)), 393description: GetResourceString(nameof(SR.AnalysisFailedDescription))); 395/// <inheritdoc cref="SR.BaseInterfaceCannotBeGeneratedMessage"/> 399GetResourceString(nameof(SR.BaseInterfaceCannotBeGeneratedTitle)), 400GetResourceString(nameof(SR.BaseInterfaceCannotBeGeneratedMessage)), 404description: GetResourceString(nameof(SR.BaseInterfaceCannotBeGeneratedDescription))); 406/// <inheritdoc cref="SR.InvalidGeneratedComClassAttributeUsageMissingPartialModifier"/> 410GetResourceString(nameof(SR.InvalidGeneratedComClassAttributeUsageTitle)), 411GetResourceString(nameof(SR.InvalidGeneratedComClassAttributeUsageMissingPartialModifier)), 415description: GetResourceString(nameof(SR.InvalidGeneratedComClassAttributeUsageDescription))); 417/// <inheritdoc cref="SR.InterfaceTypeNotSupportedMessage"/> 421GetResourceString(nameof(SR.InterfaceTypeNotSupportedTitle)), 422GetResourceString(nameof(SR.InterfaceTypeNotSupportedMessage)), 426description: GetResourceString(nameof(SR.InterfaceTypeNotSupportedMessage))); 428/// <inheritdoc cref="SR.ClassDoesNotImplementAnyGeneratedComInterfacesMessage"/> 432GetResourceString(nameof(SR.InvalidGeneratedComClassAttributeUsageTitle)), 433GetResourceString(nameof(SR.ClassDoesNotImplementAnyGeneratedComInterfacesMessage)), 437description: GetResourceString(nameof(SR.ClassDoesNotImplementAnyGeneratedComInterfacesDescription))); 439/// <inheritdoc cref="SR.UnnecessaryParameterMarshallingInfoMessage"/> 443GetResourceString(nameof(SR.UnnecessaryMarshallingInfoTitle)), 444GetResourceString(nameof(SR.UnnecessaryParameterMarshallingInfoMessage)), 448description: GetResourceString(nameof(SR.UnnecessaryMarshallingInfoDescription)), 454/// <inheritdoc cref="SR.UnnecessaryReturnMarshallingInfoMessage"/> 458GetResourceString(nameof(SR.UnnecessaryMarshallingInfoTitle)), 459GetResourceString(nameof(SR.UnnecessaryReturnMarshallingInfoMessage)), 463description: GetResourceString(nameof(SR.UnnecessaryMarshallingInfoDescription)), 469/// <inheritdoc cref="SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam"/> 473GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)), 474GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam)), 479/// <inheritdoc cref="SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue"/> 483GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)), 484GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue)), 489/// <inheritdoc cref="SR.ComMethodReturningIntWillBeOutParameterMessage"/> 493GetResourceString(nameof(SR.ComMethodReturningIntWillBeOutParameterTitle)), 494GetResourceString(nameof(SR.ComMethodReturningIntWillBeOutParameterMessage)), 499/// <inheritdoc cref="SR.HResultTypeWillBeTreatedAsStructMessage"/> 503GetResourceString(nameof(SR.HResultTypeWillBeTreatedAsStructTitle)), 504GetResourceString(nameof(SR.HResultTypeWillBeTreatedAsStructMessage)), 509/// <inheritdoc cref="SR.ComInterfaceUsageDoesNotFollowBestPracticesMessageWithDetails"/> 513GetResourceString(nameof(SR.ComInterfaceUsageDoesNotFollowBestPracticesTitle)), 514GetResourceString(nameof(SR.ComInterfaceUsageDoesNotFollowBestPracticesMessageWithDetails)), 520/// <inheritdoc cref="SR.BaseInterfaceDefinedInOtherAssemblyMessage" /> 524GetResourceString(nameof(SR.BaseInterfaceDefinedInOtherAssemblyTitle)), 525GetResourceString(nameof(SR.BaseInterfaceDefinedInOtherAssemblyMessage)), 569return new LocalizableResourceString(resourceName, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
VirtualMethodPointerStubGenerator.cs (3)
27var diagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), methodStub.DiagnosticLocation, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR)); 134var diagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), methodStub.DiagnosticLocation, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR)); 264var diagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), method.DiagnosticLocation, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
VtableIndexStubGenerator.cs (6)
234var generatorDiagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), locations, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR)); 254virtualMethodIndexAttr, symbol.Name, SR.InvalidStringMarshallingConfigurationMissingCustomType); 261virtualMethodIndexAttr, symbol.Name, SR.InvalidStringMarshallingConfigurationNotCustom); 332virtualMethodIndexAttr, symbol.Name, SR.InvalidExceptionMarshallingConfigurationMissingCustomType); 340virtualMethodIndexAttr, symbol.Name, SR.InvalidExceptionMarshallingConfigurationNotCustom); 361virtualMethodIndexAttr, symbol.Name, SR.InvalidExceptionMarshallingValue);