Skip to content

Commit

Permalink
Fix visibility and resource weirdness.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed May 18, 2021
1 parent 458ccab commit a31ac5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
</ItemGroup>

<ItemGroup>
<Compile Include="../Microsoft.Interop.SourceGeneration/**/*.cs"
Link="Microsoft.Interop.SourceGeneration/%(RecursiveDir)%(FileName)%(Extension)" />
<Compile Include="../Microsoft.Interop.SourceGeneration/**/*.cs" Link="Microsoft.Interop.SourceGeneration/%(RecursiveDir)%(FileName)%(Extension)" />
<EmbeddedResource Include="../Microsoft.Interop.SourceGeneration/Resources.resx" Link="Microsoft.Interop.SourceGeneration/Resources.resx"
LogicalName="Microsoft.Interop.SourceGeneration.Resources.resources" />
</ItemGroup>

<ItemGroup>
Expand All @@ -44,6 +45,7 @@
<EmbeddedResource Update="Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<LogicalName>Microsoft.Interop.Resources.resources</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions DllImportGenerator/DllImportGenerator/GeneratorDiagnostics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.Interop
/// <summary>
/// Class for reporting diagnostics in the DLL import generator
/// </summary>
internal class GeneratorDiagnostics : IGeneratorDiagnostics
public class GeneratorDiagnostics : IGeneratorDiagnostics
{
public class Ids
{
Expand Down Expand Up @@ -153,7 +153,7 @@ public void ReportConfigurationNotSupported(
/// <param name="method">Method with the parameter/return</param>
/// <param name="info">Type info for the parameter/return</param>
/// <param name="notSupportedDetails">[Optional] Specific reason for lack of support</param>
public void ReportMarshallingNotSupported(
void IGeneratorDiagnostics.ReportMarshallingNotSupported(
IMethodSymbol method,
TypePositionInfo info,
string? notSupportedDetails)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<SubType>Designer</SubType>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<Generator>ResXFileCodeGenerator</Generator>
<TypeName>Microsoft.Interop.SourceGenerationResources</TypeName>
</EmbeddedResource>
<Compile Update="@(Compile)" Pack="true" />
<EmbeddedResource Update="@(EmbeddedResource)" Pack="true" />
Expand Down

0 comments on commit a31ac5f

Please sign in to comment.