From a31ac5ff23724b6706291d3ea3831a64bc5eb990 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Tue, 18 May 2021 10:55:56 -0700 Subject: [PATCH] Fix visibility and resource weirdness. --- .../DllImportGenerator/DllImportGenerator.csproj | 6 ++++-- .../DllImportGenerator/GeneratorDiagnostics.cs | 4 ++-- .../Microsoft.Interop.SourceGeneration.csproj | 1 - 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/DllImportGenerator/DllImportGenerator/DllImportGenerator.csproj b/DllImportGenerator/DllImportGenerator/DllImportGenerator.csproj index 3409e73485e4..544304fd71a4 100644 --- a/DllImportGenerator/DllImportGenerator/DllImportGenerator.csproj +++ b/DllImportGenerator/DllImportGenerator/DllImportGenerator.csproj @@ -28,8 +28,9 @@ - + + @@ -44,6 +45,7 @@ ResXFileCodeGenerator Resources.Designer.cs + Microsoft.Interop.Resources.resources diff --git a/DllImportGenerator/DllImportGenerator/GeneratorDiagnostics.cs b/DllImportGenerator/DllImportGenerator/GeneratorDiagnostics.cs index 73e674450514..ed5cf1d66787 100644 --- a/DllImportGenerator/DllImportGenerator/GeneratorDiagnostics.cs +++ b/DllImportGenerator/DllImportGenerator/GeneratorDiagnostics.cs @@ -10,7 +10,7 @@ namespace Microsoft.Interop /// /// Class for reporting diagnostics in the DLL import generator /// - internal class GeneratorDiagnostics : IGeneratorDiagnostics + public class GeneratorDiagnostics : IGeneratorDiagnostics { public class Ids { @@ -153,7 +153,7 @@ public void ReportConfigurationNotSupported( /// Method with the parameter/return /// Type info for the parameter/return /// [Optional] Specific reason for lack of support - public void ReportMarshallingNotSupported( + void IGeneratorDiagnostics.ReportMarshallingNotSupported( IMethodSymbol method, TypePositionInfo info, string? notSupportedDetails) diff --git a/DllImportGenerator/Microsoft.Interop.SourceGeneration/Microsoft.Interop.SourceGeneration.csproj b/DllImportGenerator/Microsoft.Interop.SourceGeneration/Microsoft.Interop.SourceGeneration.csproj index 159264372579..02d8201acd88 100644 --- a/DllImportGenerator/Microsoft.Interop.SourceGeneration/Microsoft.Interop.SourceGeneration.csproj +++ b/DllImportGenerator/Microsoft.Interop.SourceGeneration/Microsoft.Interop.SourceGeneration.csproj @@ -23,7 +23,6 @@ Designer Resources.Designer.cs ResXFileCodeGenerator - Microsoft.Interop.SourceGenerationResources