277 references to SR
Microsoft.Interop.LibraryImportGenerator (277)
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 198generatedDeclaration = generatedDeclaration.WithAdditionalAnnotations(WarningAnnotation.Create(SR.ConvertNoPreserveSigDllImportToGeneratedMayProduceInvalidCode)); 244WarningAnnotation.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\LibraryImportDiagnosticsAnalyzer.cs (3)
246SR.ResourceManager, 264libraryImportAttr, symbol.Name, SR.InvalidStringMarshallingConfigurationMissingCustomType); 271libraryImportAttr, symbol.Name, SR.InvalidStringMarshallingConfigurationNotCustom);
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 (86)
32/// <inheritdoc cref="SR.InvalidAttributedMethodSignatureMessageLibraryImport"/> 36GetResourceString(nameof(SR.InvalidLibraryImportAttributeUsageTitle)), 37GetResourceString(nameof(SR.InvalidAttributedMethodSignatureMessageLibraryImport)), 41description: GetResourceString(nameof(SR.InvalidAttributedMethodDescriptionLibraryImport))); 43/// <inheritdoc cref="SR.InvalidAttributedMethodContainingTypeMissingModifiersMessageLibraryImport"/> 47GetResourceString(nameof(SR.InvalidLibraryImportAttributeUsageTitle)), 48GetResourceString(nameof(SR.InvalidAttributedMethodContainingTypeMissingModifiersMessageLibraryImport)), 52description: GetResourceString(nameof(SR.InvalidAttributedMethodDescriptionLibraryImport))); 54/// <inheritdoc cref="SR.InvalidStringMarshallingConfigurationMessageLibraryImport"/> 58GetResourceString(nameof(SR.InvalidLibraryImportAttributeUsageTitle)), 59GetResourceString(nameof(SR.InvalidStringMarshallingConfigurationMessageLibraryImport)), 63description: GetResourceString(nameof(SR.InvalidStringMarshallingConfigurationDescription))); 65/// <inheritdoc cref="SR.TypeNotSupportedMessageParameterLibraryImport"/> 69GetResourceString(nameof(SR.TypeNotSupportedTitle)), 70GetResourceString(nameof(SR.TypeNotSupportedMessageParameterLibraryImport)), 74description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionLibraryImport))); 76/// <inheritdoc cref="SR.TypeNotSupportedMessageReturnLibraryImport"/> 80GetResourceString(nameof(SR.TypeNotSupportedTitle)), 81GetResourceString(nameof(SR.TypeNotSupportedMessageReturnLibraryImport)), 85description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionLibraryImport))); 87/// <inheritdoc cref="SR.TypeNotSupportedMessageParameterWithDetails"/> 91GetResourceString(nameof(SR.TypeNotSupportedTitle)), 92GetResourceString(nameof(SR.TypeNotSupportedMessageParameterWithDetails)), 96description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionLibraryImport))); 98/// <inheritdoc cref="SR.TypeNotSupportedMessageReturnWithDetails"/> 102GetResourceString(nameof(SR.TypeNotSupportedTitle)), 103GetResourceString(nameof(SR.TypeNotSupportedMessageReturnWithDetails)), 107description: GetResourceString(nameof(SR.TypeNotSupportedDescriptionLibraryImport))); 109/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageParameterLibraryImport"/> 113GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 114GetResourceString(nameof(SR.ConfigurationNotSupportedMessageParameterLibraryImport)), 118description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 120/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageReturnLibraryImport"/> 124GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 125GetResourceString(nameof(SR.ConfigurationNotSupportedMessageReturnLibraryImport)), 129description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 131/// <inheritdoc cref="SR.MarshalAsConfigurationNotSupportedMessageParameterLibraryImport"/> 135GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 136GetResourceString(nameof(SR.MarshalAsConfigurationNotSupportedMessageParameterLibraryImport)), 140description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 142/// <inheritdoc cref="SR.MarshalAsConfigurationNotSupportedMessageReturnLibraryImport"/> 146GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 147GetResourceString(nameof(SR.MarshalAsConfigurationNotSupportedMessageReturnLibraryImport)), 151description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 153/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageLibraryImport"/> 157GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 158GetResourceString(nameof(SR.ConfigurationNotSupportedMessageLibraryImport)), 162description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 164/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageValueLibraryImport"/> 168GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 169GetResourceString(nameof(SR.ConfigurationNotSupportedMessageValueLibraryImport)), 173description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 175/// <inheritdoc cref="SR.ConfigurationNotSupportedMessageMarshallingInfoLibraryImport"/> 179GetResourceString(nameof(SR.ConfigurationNotSupportedTitleLibraryImport)), 180GetResourceString(nameof(SR.ConfigurationNotSupportedMessageMarshallingInfoLibraryImport)), 184description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescriptionLibraryImport))); 186/// <inheritdoc cref="SR.CannotForwardToDllImportMessage"/> 190GetResourceString(nameof(SR.CannotForwardToDllImportTitle)), 191GetResourceString(nameof(SR.CannotForwardToDllImportMessage)), 195description: GetResourceString(nameof(SR.CannotForwardToDllImportDescription))); 197/// <inheritdoc cref="SR.RequiresAllowUnsafeBlocksMessageLibraryImport"/> 201GetResourceString(nameof(SR.RequiresAllowUnsafeBlocksTitleLibraryImport)), 202GetResourceString(nameof(SR.RequiresAllowUnsafeBlocksMessageLibraryImport)), 206description: GetResourceString(nameof(SR.RequiresAllowUnsafeBlocksDescriptionLibraryImport))); 208/// <inheritdoc cref="SR.RequiresExplicitSafetyModifierMessageLibraryImport"/> 212GetResourceString(nameof(SR.RequiresExplicitSafetyModifierTitleLibraryImport)), 213GetResourceString(nameof(SR.RequiresExplicitSafetyModifierMessageLibraryImport)), 217description: GetResourceString(nameof(SR.RequiresExplicitSafetyModifierDescriptionLibraryImport))); 219/// <inheritdoc cref="SR.UnnecessaryParameterMarshallingInfoMessage"/> 223GetResourceString(nameof(SR.UnnecessaryMarshallingInfoTitle)), 224GetResourceString(nameof(SR.UnnecessaryParameterMarshallingInfoMessage)), 228description: GetResourceString(nameof(SR.UnnecessaryMarshallingInfoDescription)), 234/// <inheritdoc cref="SR.UnnecessaryMarshallingInfoDescription"/> 238GetResourceString(nameof(SR.UnnecessaryMarshallingInfoTitle)), 239GetResourceString(nameof(SR.UnnecessaryReturnMarshallingInfoMessage)), 243description: GetResourceString(nameof(SR.UnnecessaryMarshallingInfoDescription)), 249/// <inheritdoc cref="SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam"/> 253GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)), 254GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageOutParam)), 259/// <inheritdoc cref="SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue"/> 263GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeTitle)), 264GetResourceString(nameof(SR.SizeOfCollectionMustBeKnownAtMarshalTimeMessageReturnValue)), 269/// <inheritdoc cref="SR.LibraryImportUsageDoesNotFollowBestPracticesMessageWithDetails"/> 273GetResourceString(nameof(SR.LibraryImportUsageDoesNotFollowBestPracticesTitle)), 274GetResourceString(nameof(SR.LibraryImportUsageDoesNotFollowBestPracticesMessageWithDetails)), 315return new LocalizableResourceString(resourceName, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.LibraryImportGenerator.SR));
LibraryImportGenerator.cs (2)
269var discardedDiagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), locations, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.LibraryImportGenerator.SR)); 310var discardedDiagnostics = new GeneratorDiagnosticsBag(new DiagnosticDescriptorProvider(), pinvokeStub.DiagnosticLocation, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.LibraryImportGenerator.SR));