203 references to SR
Microsoft.Interop.ComInterfaceGenerator (203)
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)
263var generatorDiagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), locations, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.ComInterfaceGenerator.SR));
ComInterfaceInfo.cs (5)
210SR.InvalidStringMarshallingConfigurationMissingCustomType); 229SR.InvalidStringMarshallingConfigurationNotCustom); 244SR.GeneratedComInterfaceStringMarshallingMustMatchBase); 266SR.OneWrapperMustBeGenerated); 280SR.BaseInterfaceMustGenerateAtLeastSameWrappers);
GeneratorDiagnostics.cs (166)
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.InvalidExceptionMarshallingConfigurationMessage"/> 148GetResourceString(nameof(SR.InvalidVirtualMethodIndexAttributeUsage)), 149GetResourceString(nameof(SR.InvalidExceptionMarshallingConfigurationMessage)), 153description: GetResourceString(nameof(SR.InvalidExceptionMarshallingConfigurationDescription))); 155/// <inheritdoc cref="SR.TypeNotSupportedMessageParameterCom"/> 159GetResourceString(nameof(SR.TypeNotSupportedTitleCom)), 160GetResourceString(nameof(SR.TypeNotSupportedMessageParameterCom)), 164description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionCom))); 166/// <inheritdoc cref="SR.TypeNotSupportedMessageReturnCom"/> 170GetResourceString(nameof(SR.TypeNotSupportedTitleCom)), 171GetResourceString(nameof(SR.TypeNotSupportedMessageReturnCom)), 175description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionCom))); 177/// <inheritdoc cref="SR.TypeNotSupportedMessageParameterWithDetails"/> 181GetResourceString(nameof(SR.TypeNotSupportedTitleCom)), 182GetResourceString(nameof(SR.TypeNotSupportedMessageParameterWithDetails)), 186description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionCom))); 188/// <inheritdoc cref="SR.TypeNotSupportedMessageReturnWithDetails"/> 192GetResourceString(nameof(SR.TypeNotSupportedTitleCom)), 193GetResourceString(nameof(SR.TypeNotSupportedMessageReturnWithDetails)), 197description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionCom))); 199/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageParameterCom"/> 203GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 204GetResourceString(nameof(SR.ConfigurationNotSupportedMessageParameterCom)), 208description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 210/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageReturnCom"/> 214GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 215GetResourceString(nameof(SR.ConfigurationNotSupportedMessageReturnCom)), 219description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 221/// <inheritdoc cref="SR.MarshalAsConfigurationNotSupportedMessageParameterCom"/> 225GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 226GetResourceString(nameof(SR.MarshalAsConfigurationNotSupportedMessageParameterCom)), 230description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 232/// <inheritdoc cref="SR.MarshalAsConfigurationNotSupportedMessageReturnCom"/> 236GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 237GetResourceString(nameof(SR.MarshalAsConfigurationNotSupportedMessageReturnCom)), 241description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 243/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageCom"/> 247GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 248GetResourceString(nameof(SR.ConfigurationNotSupportedMessageCom)), 252description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 254/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageValueCom"/> 258GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 259GetResourceString(nameof(SR.ConfigurationNotSupportedMessageValueCom)), 263description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 265/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageMarshallingInfoCom"/> 269GetResourceString(nameof(SR.ConfigurationNotSupportedTitleCom)), 270GetResourceString(nameof(SR.ConfigurationNotSupportedMessageMarshallingInfoCom)), 274description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionCom))); 276/// <inheritdoc cref="SR.MethodNotDeclaredInAttributedInterfaceMessage"/> 280GetResourceString(nameof(SR.MethodNotDeclaredInAttributedInterfaceTitle)), 281GetResourceString(nameof(SR.MethodNotDeclaredInAttributedInterfaceMessage)), 285description: GetResourceString(nameof(SR.MethodNotDeclaredInAttributedInterfaceDescription))); 287/// <inheritdoc cref="SR.InstancePropertyDeclaredInInterfaceMessage"/> 291GetResourceString(nameof(SR.InstancePropertyDeclaredInInterfaceTitle)), 292GetResourceString(nameof(SR.InstancePropertyDeclaredInInterfaceMessage)), 296description: GetResourceString(nameof(SR.InstancePropertyDeclaredInInterfaceDescription))); 298/// <inheritdoc cref="SR.InstanceEventDeclaredInInterfaceMessage"/> 302GetResourceString(nameof(SR.InstanceEventDeclaredInInterfaceTitle)), 303GetResourceString(nameof(SR.InstanceEventDeclaredInInterfaceMessage)), 307description: GetResourceString(nameof(SR.InstanceEventDeclaredInInterfaceDescription))); 309/// <inheritdoc cref="SR.InvalidGeneratedComInterfaceAttributeUsageInterfaceNotAccessible"/> 313GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 314GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageInterfaceNotAccessible)), 318description: GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageDescription))); 320/// <inheritdoc cref="SR.InvalidGeneratedComInterfaceAttributeUsageMissingGuidAttribute"/> 324GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 325GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageMissingGuidAttribute)), 329description: GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageDescription))); 331/// <inheritdoc cref="SR.InvalidGeneratedComInterfaceAttributeUsageInterfaceIsGeneric"/> 335GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageTitle)), 336GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageInterfaceIsGeneric)), 340description: GetResourceString(nameof(SR.InvalidGeneratedComInterfaceAttributeUsageDescription))); 342/// <inheritdoc cref="SR.MultipleComInterfaceBaseTypesMessage"/> 346GetResourceString(nameof(SR.MultipleComInterfaceBaseTypesTitle)), 347GetResourceString(nameof(SR.MultipleComInterfaceBaseTypesMessage)), 351description: GetResourceString(nameof(SR.MultipleComInterfaceBaseTypesDescription))); 353/// <inheritdoc cref="SR.AnalysisFailedMethodMessage"/> 357GetResourceString(nameof(SR.AnalysisFailedTitle)), 358GetResourceString(nameof(SR.AnalysisFailedMethodMessage)), 362description: GetResourceString(nameof(SR.AnalysisFailedDescription))); 364/// <inheritdoc cref="SR.AnalysisFailedInterfaceMessage"/> 368GetResourceString(nameof(SR.AnalysisFailedTitle)), 369GetResourceString(nameof(SR.AnalysisFailedInterfaceMessage)), 373description: GetResourceString(nameof(SR.AnalysisFailedDescription))); 375/// <inheritdoc cref="SR.BaseInterfaceCannotBeGeneratedMessage"/> 379GetResourceString(nameof(SR.BaseInterfaceCannotBeGeneratedTitle)), 380GetResourceString(nameof(SR.BaseInterfaceCannotBeGeneratedMessage)), 384description: GetResourceString(nameof(SR.BaseInterfaceCannotBeGeneratedDescription))); 386/// <inheritdoc cref="SR.InvalidGeneratedComClassAttributeUsageMissingPartialModifier"/> 390GetResourceString(nameof(SR.InvalidGeneratedComClassAttributeUsageTitle)), 391GetResourceString(nameof(SR.InvalidGeneratedComClassAttributeUsageMissingPartialModifier)), 395description: GetResourceString(nameof(SR.InvalidGeneratedComClassAttributeUsageDescription))); 397/// <inheritdoc cref="SR.InterfaceTypeNotSupportedMessage"/> 401GetResourceString(nameof(SR.InterfaceTypeNotSupportedTitle)), 402GetResourceString(nameof(SR.InterfaceTypeNotSupportedMessage)), 406description: GetResourceString(nameof(SR.InterfaceTypeNotSupportedMessage))); 408/// <inheritdoc cref="SR.ClassDoesNotImplementAnyGeneratedComInterfacesMessage"/> 412GetResourceString(nameof(SR.InvalidGeneratedComClassAttributeUsageTitle)), 413GetResourceString(nameof(SR.ClassDoesNotImplementAnyGeneratedComInterfacesMessage)), 417description: GetResourceString(nameof(SR.ClassDoesNotImplementAnyGeneratedComInterfacesDescription))); 419/// <inheritdoc cref="SR.UnnecessaryParameterMarshallingInfoMessage"/> 423GetResourceString(nameof(SR.UnnecessaryMarshallingInfoTitle)), 424GetResourceString(nameof(SR.UnnecessaryParameterMarshallingInfoMessage)), 428description: GetResourceString(nameof(SR.UnnecessaryMarshallingInfoDescription)), 434/// <inheritdoc cref="SR.UnnecessaryReturnMarshallingInfoMessage"/> 438GetResourceString(nameof(SR.UnnecessaryMarshallingInfoTitle)), 439GetResourceString(nameof(SR.UnnecessaryReturnMarshallingInfoMessage)), 443description: GetResourceString(nameof(SR.UnnecessaryMarshallingInfoDescription)), 449/// <inheritdoc cref="SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam"/> 453GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)), 454GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam)), 459/// <inheritdoc cref="SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue"/> 463GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)), 464GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue)), 469/// <inheritdoc cref="SR.ComMethodReturningIntWillBeOutParameterMessage"/> 473GetResourceString(nameof(SR.ComMethodReturningIntWillBeOutParameterTitle)), 474GetResourceString(nameof(SR.ComMethodReturningIntWillBeOutParameterMessage)), 479/// <inheritdoc cref="SR.HResultTypeWillBeTreatedAsStructMessage"/> 483GetResourceString(nameof(SR.HResultTypeWillBeTreatedAsStructTitle)), 484GetResourceString(nameof(SR.HResultTypeWillBeTreatedAsStructMessage)), 489/// <inheritdoc cref="SR.ComInterfaceUsageDoesNotFollowBestPracticesMessageWithDetails"/> 493GetResourceString(nameof(SR.ComInterfaceUsageDoesNotFollowBestPracticesTitle)), 494GetResourceString(nameof(SR.ComInterfaceUsageDoesNotFollowBestPracticesMessageWithDetails)), 500/// <inheritdoc cref="SR.BaseInterfaceDefinedInOtherAssemblyMessage" /> 504GetResourceString(nameof(SR.BaseInterfaceDefinedInOtherAssemblyTitle)), 505GetResourceString(nameof(SR.BaseInterfaceDefinedInOtherAssemblyMessage)), 549return 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);