272 references to SR
Microsoft.Interop.LibraryImportGenerator (272)
Analyzers\AnalyzerDiagnostics.cs (1)
33return new LocalizableResourceString(resourceName, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.LibraryImportGenerator.SR));
Analyzers\ConvertToLibraryImportAnalyzer.cs (4)
26GetResourceString(nameof(SR.ConvertToLibraryImportTitle)), 27GetResourceString(nameof(SR.ConvertToLibraryImportMessage)), 31description: GetResourceString(nameof(SR.ConvertToLibraryImportDescription))); 141GeneratorDiagnosticsBag diagnostics = new(new DiagnosticDescriptorProvider(), new MethodSignatureDiagnosticLocations((MethodDeclarationSyntax)method.DeclaringSyntaxReferences[0].GetSyntax()), SR.ResourceManager, typeof(FxResources.Microsoft.Interop.LibraryImportGenerator.SR));
Analyzers\ConvertToLibraryImportFixer.cs (8)
49(true, true) => SR.Format(SR.ConvertToLibraryImportWithSuffixAddUnsafe, suffix), 50(true, false) => SR.ConvertToLibraryImportAddUnsafe, 51(false, true) => SR.Format(SR.ConvertToLibraryImportWithSuffix, suffix), 52(false, false) => SR.ConvertToLibraryImport 186generatedDeclaration = generatedDeclaration.WithAdditionalAnnotations(WarningAnnotation.Create(SR.ConvertNoPreserveSigDllImportToGeneratedMayProduceInvalidCode)); 232WarningAnnotation.Create(SR.ConvertToLibraryImportMayRequireCustomMarshalling));
Analyzers\CustomMarshallerAttributeAnalyzer.cs (162)
42/// <inheritdoc cref="SR.MarshallerTypeMustSpecifyManagedTypeMessage" /> 46GetResourceString(nameof(SR.InvalidCustomMarshallerAttributeUsageTitle)), 47GetResourceString(nameof(SR.MarshallerTypeMustSpecifyManagedTypeMessage)), 51description: GetResourceString(nameof(SR.MarshallerTypeMustSpecifyManagedTypeDescription))); 53/// <inheritdoc cref="SR.MarshallerTypeMustBeStaticClassOrStructMessage" /> 57GetResourceString(nameof(SR.InvalidMarshallerTypeTitle)), 58GetResourceString(nameof(SR.MarshallerTypeMustBeStaticClassOrStructMessage)), 62description: GetResourceString(nameof(SR.MarshallerTypeMustBeStaticClassOrStructDescription))); 64/// <inheritdoc cref="SR.ElementMarshallerCannotBeStatefulMessage" /> 68GetResourceString(nameof(SR.InvalidMarshallerTypeTitle)), 69GetResourceString(nameof(SR.ElementMarshallerCannotBeStatefulMessage)), 73description: GetResourceString(nameof(SR.ElementMarshallerCannotBeStatefulDescription))); 75/// <inheritdoc cref="SR.TypeMustBeUnmanagedMessage" /> 79GetResourceString(nameof(SR.InvalidMarshallerTypeTitle)), 80GetResourceString(nameof(SR.TypeMustBeUnmanagedMessage)), 84description: GetResourceString(nameof(SR.TypeMustBeUnmanagedDescription))); 86/// <inheritdoc cref="SR.GetPinnableReferenceReturnTypeBlittableMessage" /> 90GetResourceString(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)), 91GetResourceString(nameof(SR.GetPinnableReferenceReturnTypeBlittableMessage)), 95description: GetResourceString(nameof(SR.GetPinnableReferenceReturnTypeBlittableDescription))); 97/// <inheritdoc cref="SR.TypeMustHaveExplicitCastFromVoidPointerMessage" /> 101GetResourceString(nameof(SR.InvalidMarshallerTypeTitle)), 102GetResourceString(nameof(SR.TypeMustHaveExplicitCastFromVoidPointerMessage)), 106description: GetResourceString(nameof(SR.TypeMustHaveExplicitCastFromVoidPointerDescription))); 108/// <inheritdoc cref="SR.StatelessValueInRequiresConvertToUnmanagedMessage" /> 112GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 113GetResourceString(nameof(SR.StatelessValueInRequiresConvertToUnmanagedMessage)), 117description: GetResourceString(nameof(SR.StatelessValueInRequiresConvertToUnmanagedDescription))); 119/// <inheritdoc cref="SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsMessage" /> 123GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 124GetResourceString(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsMessage)), 128description: GetResourceString(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsDescription))); 130/// <inheritdoc cref="SR.OutRequiresToManagedMessage" /> 134GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 135GetResourceString(nameof(SR.OutRequiresToManagedMessage)), 139description: GetResourceString(nameof(SR.OutRequiresToManagedDescription))); 141/// <inheritdoc cref="SR.StatelessRequiresConvertToManagedMessage" /> 145GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 146GetResourceString(nameof(SR.StatelessRequiresConvertToManagedMessage)), 150description: GetResourceString(nameof(SR.StatelessRequiresConvertToManagedDescription))); 152/// <inheritdoc cref="SR.LinearCollectionInRequiresCollectionMethodsMessage" /> 156GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 157GetResourceString(nameof(SR.LinearCollectionInRequiresCollectionMethodsMessage)), 161description: GetResourceString(nameof(SR.LinearCollectionInRequiresCollectionMethodsDescription))); 163/// <inheritdoc cref="SR.StatelessLinearCollectionInRequiresCollectionMethodsMessage" /> 167GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 168GetResourceString(nameof(SR.StatelessLinearCollectionInRequiresCollectionMethodsMessage)), 172description: GetResourceString(nameof(SR.StatelessLinearCollectionInRequiresCollectionMethodsDescription))); 174/// <inheritdoc cref="SR.LinearCollectionOutRequiresCollectionMethodsMessage" /> 178GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 179GetResourceString(nameof(SR.LinearCollectionOutRequiresCollectionMethodsMessage)), 183description: GetResourceString(nameof(SR.LinearCollectionOutRequiresCollectionMethodsDescription))); 185/// <inheritdoc cref="SR.StatelessLinearCollectionOutRequiresCollectionMethodsMessage" /> 189GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 190GetResourceString(nameof(SR.StatelessLinearCollectionOutRequiresCollectionMethodsMessage)), 194description: GetResourceString(nameof(SR.StatelessLinearCollectionOutRequiresCollectionMethodsDescription))); 196/// <inheritdoc cref="SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsMessage" /> 200GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 201GetResourceString(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsMessage)), 205description: GetResourceString(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsDescription))); 207/// <inheritdoc cref="SR.CallerAllocFromManagedMustHaveBufferSizeMessage" /> 211GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 212GetResourceString(nameof(SR.CallerAllocFromManagedMustHaveBufferSizeMessage)), 216description: GetResourceString(nameof(SR.CallerAllocFromManagedMustHaveBufferSizeDescription))); 218/// <inheritdoc cref="SR.StatelessLinearCollectionCallerAllocFromManagedMustHaveBufferSizeMessage" /> 222GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 223GetResourceString(nameof(SR.StatelessLinearCollectionCallerAllocFromManagedMustHaveBufferSizeMessage)), 227description: GetResourceString(nameof(SR.StatelessLinearCollectionCallerAllocFromManagedMustHaveBufferSizeDescription))); 229/// <inheritdoc cref="SR.StatefulMarshallerRequiresFromManagedMessage" /> 233GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 234GetResourceString(nameof(SR.StatefulMarshallerRequiresFromManagedMessage)), 238description: GetResourceString(nameof(SR.StatefulMarshallerRequiresFromManagedDescription))); 240/// <inheritdoc cref="SR.StatefulMarshallerRequiresToUnmanagedMessage" /> 244GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 245GetResourceString(nameof(SR.StatefulMarshallerRequiresToUnmanagedMessage)), 249description: GetResourceString(nameof(SR.StatefulMarshallerRequiresToUnmanagedDescription))); 251/// <inheritdoc cref="SR.StatefulMarshallerRequiresToManagedMessage" /> 255GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 256GetResourceString(nameof(SR.StatefulMarshallerRequiresToManagedMessage)), 260description: GetResourceString(nameof(SR.StatefulMarshallerRequiresToManagedDescription))); 262/// <inheritdoc cref="SR.StatefulMarshallerRequiresFromUnmanagedMessage" /> 266GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 267GetResourceString(nameof(SR.StatefulMarshallerRequiresFromUnmanagedMessage)), 271description: GetResourceString(nameof(SR.StatefulMarshallerRequiresFromUnmanagedDescription))); 273/// <inheritdoc cref="SR.StatefulMarshallerRequiresFreeMessage" /> 277GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 278GetResourceString(nameof(SR.StatefulMarshallerRequiresFreeMessage)), 282description: GetResourceString(nameof(SR.StatefulMarshallerRequiresFreeDescription))); 284/// <inheritdoc cref="SR.FromUnmanagedOverloadsNotSupportedMessage" /> 288GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 289GetResourceString(nameof(SR.FromUnmanagedOverloadsNotSupportedMessage)), 293description: GetResourceString(nameof(SR.FromUnmanagedOverloadsNotSupportedDescription))); 295/// <inheritdoc cref="SR.MarshallerTypeMustBeClosedOrMatchArityMessage" /> 299GetResourceString(nameof(SR.InvalidMarshallerTypeTitle)), 300GetResourceString(nameof(SR.MarshallerTypeMustBeClosedOrMatchArityMessage)), 304description: GetResourceString(nameof(SR.MarshallerTypeMustBeClosedOrMatchArityDescription))); 306/// <inheritdoc cref="SR.MarshallerTypeMustBeNonNullMessage" /> 310GetResourceString(nameof(SR.InvalidMarshallerTypeTitle)), 311GetResourceString(nameof(SR.MarshallerTypeMustBeNonNullMessage)), 315description: GetResourceString(nameof(SR.MarshallerTypeMustBeNonNullDescription))); 317/// <inheritdoc cref="SR.FirstParameterMustMatchReturnTypeMessage" /> 321GetResourceString(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)), 322GetResourceString(nameof(SR.FirstParameterMustMatchReturnTypeMessage)), 326description: GetResourceString(nameof(SR.FirstParameterMustMatchReturnTypeDescription))); 328/// <inheritdoc cref="SR.ReturnTypesMustMatchMessage" /> 332GetResourceString(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)), 333GetResourceString(nameof(SR.ReturnTypesMustMatchMessage)), 337description: GetResourceString(nameof(SR.ReturnTypesMustMatchDescription))); 339/// <inheritdoc cref="SR.FirstParametersMustMatchMessage" /> 343GetResourceString(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)), 344GetResourceString(nameof(SR.FirstParametersMustMatchMessage)), 348description: GetResourceString(nameof(SR.FirstParametersMustMatchDescription))); 350/// <inheritdoc cref="SR.ElementTypesOfReturnTypesMustMatchMessage" /> 354GetResourceString(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)), 355GetResourceString(nameof(SR.ElementTypesOfReturnTypesMustMatchMessage)), 359description: GetResourceString(nameof(SR.ElementTypesOfReturnTypesMustMatchDescription))); 361/// <inheritdoc cref="SR.ReturnTypeMustBeExpectedTypeMessage" /> 365GetResourceString(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)), 366GetResourceString(nameof(SR.ReturnTypeMustBeExpectedTypeMessage)), 370description: GetResourceString(nameof(SR.ReturnTypeMustBeExpectedTypeDescription))); 372/// <inheritdoc cref="SR.ManagedTypeMustBeClosedOrMatchArityMessage" /> 376GetResourceString(nameof(SR.InvalidManagedTypeTitle)), 377GetResourceString(nameof(SR.ManagedTypeMustBeClosedOrMatchArityMessage)), 381description: GetResourceString(nameof(SR.ManagedTypeMustBeClosedOrMatchArityDescription))); 383/// <inheritdoc cref="SR.ManagedTypeMustBeNonNullMessage" /> 387GetResourceString(nameof(SR.InvalidManagedTypeTitle)), 388GetResourceString(nameof(SR.ManagedTypeMustBeNonNullMessage)), 392description: GetResourceString(nameof(SR.ManagedTypeMustBeNonNullDescription))); 394/// <inheritdoc cref="SR.MarshalModeMustBeValidEnumValue" /> 398GetResourceString(nameof(SR.InvalidMarshalModeTitle)), 399GetResourceString(nameof(SR.MarshalModeMustBeValidEnumValue)), 403description: GetResourceString(nameof(SR.MarshalModeMustBeValidEnumValue))); 416GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 417GetResourceString(nameof(SR.StatelessValueInRequiresConvertToUnmanagedMessage)), 421description: GetResourceString(nameof(SR.StatelessValueInRequiresConvertToUnmanagedDescription))); 427GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 428GetResourceString(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsMessage)), 432description: GetResourceString(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsDescription))); 438GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 439GetResourceString(nameof(SR.StatelessRequiresConvertToManagedMessage)), 443description: GetResourceString(nameof(SR.StatelessRequiresConvertToManagedDescription))); 449GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 450GetResourceString(nameof(SR.StatelessLinearCollectionInRequiresCollectionMethodsMessage)), 454description: GetResourceString(nameof(SR.StatelessLinearCollectionInRequiresCollectionMethodsDescription))); 460GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 461GetResourceString(nameof(SR.StatelessLinearCollectionOutRequiresCollectionMethodsMessage)), 465description: GetResourceString(nameof(SR.StatelessLinearCollectionOutRequiresCollectionMethodsDescription))); 471GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 472GetResourceString(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsMessage)), 476description: GetResourceString(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsDescription))); 482GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 483GetResourceString(nameof(SR.StatefulMarshallerRequiresFromManagedMessage)), 487description: GetResourceString(nameof(SR.StatefulMarshallerRequiresFromManagedDescription))); 493GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 494GetResourceString(nameof(SR.StatefulMarshallerRequiresToUnmanagedMessage)), 498description: GetResourceString(nameof(SR.StatefulMarshallerRequiresToUnmanagedDescription))); 504GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 505GetResourceString(nameof(SR.StatefulMarshallerRequiresToManagedMessage)), 509description: GetResourceString(nameof(SR.StatefulMarshallerRequiresToManagedDescription))); 515GetResourceString(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)), 516GetResourceString(nameof(SR.StatefulMarshallerRequiresFromUnmanagedMessage)), 520description: GetResourceString(nameof(SR.StatefulMarshallerRequiresFromUnmanagedDescription)));
Analyzers\CustomMarshallerAttributeFixer.cs (2)
84return CodeAction.Create(SR.AddMissingCustomTypeMarshallerMembers, ct => Task.FromResult(symbolEditor.ChangedSolution)); 123SR.AddMissingCustomTypeMarshallerMembers,
Analyzers\NativeMarshallingAttributeAnalyzer.cs (9)
27GetResourceString(nameof(SR.InvalidNativeMarshallingAttributeUsageTitle)), 28GetResourceString(nameof(SR.EntryPointTypeMustHaveCustomMarshallerAttributeWithMatchingManagedTypeMessage)), 32description: GetResourceString(nameof(SR.EntryPointTypeMustHaveCustomMarshallerAttributeWithMatchingManagedTypeDescription))); 37GetResourceString(nameof(SR.InvalidNativeMarshallingAttributeUsageTitle)), 38GetResourceString(nameof(SR.EntryPointTypeMustBeNonNullMessage)), 42description: GetResourceString(nameof(SR.EntryPointTypeMustBeNonNullDescription))); 47GetResourceString(nameof(SR.InvalidNativeMarshallingAttributeUsageTitle)), 48GetResourceString(nameof(SR.GenericEntryPointMarshallerTypeMustBeClosedOrMatchArityMessage)), 52description: GetResourceString(nameof(SR.GenericEntryPointMarshallerTypeMustBeClosedOrMatchArityDescription)));
GeneratorDiagnostics.cs (82)
31/// <inheritdoc cref="SR.InvalidAttributedMethodSignatureMessageLibraryImport"/> 35GetResourceString(nameof(SR.InvalidLibraryImportAttributeUsageTitle)), 36GetResourceString(nameof(SR.InvalidAttributedMethodSignatureMessageLibraryImport)), 40description: GetResourceString(nameof(SR.InvalidAttributedMethodDescriptionLibraryImport))); 42/// <inheritdoc cref="SR.InvalidAttributedMethodContainingTypeMissingModifiersMessageLibraryImport"/> 46GetResourceString(nameof(SR.InvalidLibraryImportAttributeUsageTitle)), 47GetResourceString(nameof(SR.InvalidAttributedMethodContainingTypeMissingModifiersMessageLibraryImport)), 51description: GetResourceString(nameof(SR.InvalidAttributedMethodDescriptionLibraryImport))); 53/// <inheritdoc cref="SR.InvalidStringMarshallingConfigurationMessageLibraryImport"/> 57GetResourceString(nameof(SR.InvalidLibraryImportAttributeUsageTitle)), 58GetResourceString(nameof(SR.InvalidStringMarshallingConfigurationMessageLibraryImport)), 62description: GetResourceString(nameof(SR.InvalidStringMarshallingConfigurationDescription))); 64/// <inheritdoc cref="SR.TypeNotSupportedMessageParameterLibraryImport"/> 68GetResourceString(nameof(SR.TypeNotSupportedTitle)), 69GetResourceString(nameof(SR.TypeNotSupportedMessageParameterLibraryImport)), 73description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionLibraryImport))); 75/// <inheritdoc cref="SR.TypeNotSupportedMessageReturnLibraryImport"/> 79GetResourceString(nameof(SR.TypeNotSupportedTitle)), 80GetResourceString(nameof(SR.TypeNotSupportedMessageReturnLibraryImport)), 84description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionLibraryImport))); 86/// <inheritdoc cref="SR.TypeNotSupportedMessageParameterWithDetails"/> 90GetResourceString(nameof(SR.TypeNotSupportedTitle)), 91GetResourceString(nameof(SR.TypeNotSupportedMessageParameterWithDetails)), 95description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionLibraryImport))); 97/// <inheritdoc cref="SR.TypeNotSupportedMessageReturnWithDetails"/> 101GetResourceString(nameof(SR.TypeNotSupportedTitle)), 102GetResourceString(nameof(SR.TypeNotSupportedMessageReturnWithDetails)), 106description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionLibraryImport))); 108/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageParameterLibraryImport"/> 112GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 113GetResourceString(nameof(SR.ConfigurationNotSupportedMessageParameterLibraryImport)), 117description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 119/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageReturnLibraryImport"/> 123GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 124GetResourceString(nameof(SR.ConfigurationNotSupportedMessageReturnLibraryImport)), 128description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 130/// <inheritdoc cref="SR.MarshalAsConfigurationNotSupportedMessageParameterLibraryImport"/> 134GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 135GetResourceString(nameof(SR.MarshalAsConfigurationNotSupportedMessageParameterLibraryImport)), 139description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 141/// <inheritdoc cref="SR.MarshalAsConfigurationNotSupportedMessageReturnLibraryImport"/> 145GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 146GetResourceString(nameof(SR.MarshalAsConfigurationNotSupportedMessageReturnLibraryImport)), 150description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 152/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageLibraryImport"/> 156GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 157GetResourceString(nameof(SR.ConfigurationNotSupportedMessageLibraryImport)), 161description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 163/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageValueLibraryImport"/> 167GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 168GetResourceString(nameof(SR.ConfigurationNotSupportedMessageValueLibraryImport)), 172description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 174/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageMarshallingInfoLibraryImport"/> 178GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 179GetResourceString(nameof(SR.ConfigurationNotSupportedMessageMarshallingInfoLibraryImport)), 183description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 185/// <inheritdoc cref="SR.CannotForwardToDllImportMessage"/> 189GetResourceString(nameof(SR.CannotForwardToDllImportTitle)), 190GetResourceString(nameof(SR.CannotForwardToDllImportMessage)), 194description: GetResourceString(nameof(SR.CannotForwardToDllImportDescription))); 196/// <inheritdoc cref="SR.RequiresAllowUnsafeBlocksMessageLibraryImport"/> 200GetResourceString(nameof(SR.RequiresAllowUnsafeBlocksTitleLibraryImport)), 201GetResourceString(nameof(SR.RequiresAllowUnsafeBlocksMessageLibraryImport)), 205description: GetResourceString(nameof(SR.RequiresAllowUnsafeBlocksDescriptionLibraryImport))); 207/// <inheritdoc cref="SR.UnnecessaryParameterMarshallingInfoMessage"/> 211GetResourceString(nameof(SR.UnnecessaryMarshallingInfoTitle)), 212GetResourceString(nameof(SR.UnnecessaryParameterMarshallingInfoMessage)), 216description: GetResourceString(nameof(SR.UnnecessaryMarshallingInfoDescription)), 222/// <inheritdoc cref="SR.UnnecessaryMarshallingInfoDescription"/> 226GetResourceString(nameof(SR.UnnecessaryMarshallingInfoTitle)), 227GetResourceString(nameof(SR.UnnecessaryReturnMarshallingInfoMessage)), 231description: GetResourceString(nameof(SR.UnnecessaryMarshallingInfoDescription)), 237/// <inheritdoc cref="SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam"/> 241GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)), 242GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam)), 247/// <inheritdoc cref="SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue"/> 251GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)), 252GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue)), 257/// <inheritdoc cref="SR.LibraryImportUsageDoesNotFollowBestPracticesMessageWithDetails"/> 261GetResourceString(nameof(SR.LibraryImportUsageDoesNotFollowBestPracticesTitle)), 262GetResourceString(nameof(SR.LibraryImportUsageDoesNotFollowBestPracticesMessageWithDetails)), 303return new LocalizableResourceString(resourceName, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.LibraryImportGenerator.SR));
LibraryImportGenerator.cs (4)
260var generatorDiagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), locations, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.LibraryImportGenerator.SR)); 273generatedDllImportAttr, symbol.Name, SR.InvalidStringMarshallingConfigurationMissingCustomType); 280generatedDllImportAttr, symbol.Name, SR.InvalidStringMarshallingConfigurationNotCustom); 320var diagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), pinvokeStub.DiagnosticLocation, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.LibraryImportGenerator.SR));