Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Fix .NETStandard Vulkan assembly visibility
Browse files Browse the repository at this point in the history
Fixes #77

As the .NETStandard project created AssemblyInfo.cs during the build,
we need to put the visibility attributes in separate file,
`AssemblyVisibility.cs` and use it in PCL and .NETStandard projects.
  • Loading branch information
radekdoulik committed Oct 12, 2018
1 parent 39c65f4 commit 66ae79f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions netstandard/Vulkan.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@
<Compile Include="..\src\Vulkan\Interop\MarshalUnions.cs">
<Link>Vulkan\Interop\MarshalUnions.cs</Link>
</Compile>
<Compile Include="..\src\Vulkan\Properties/AssemblyVisibility.cs">
<Link>Vulkan\Properties/AssemblyVisibility.cs</Link>
</Compile>
</ItemGroup>
</Project>
4 changes: 0 additions & 4 deletions src/Vulkan/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,3 @@

//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]

[assembly: InternalsVisibleTo("Vulkan.Android")]
[assembly: InternalsVisibleTo("Vulkan.Windows")]
[assembly: InternalsVisibleTo("Vulkan.iOS")]
5 changes: 5 additions & 0 deletions src/Vulkan/Properties/AssemblyVisibility.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("Vulkan.Android")]
[assembly: InternalsVisibleTo("Vulkan.Windows")]
[assembly: InternalsVisibleTo("Vulkan.iOS")]
1 change: 1 addition & 0 deletions src/Vulkan/Vulkan.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
</PropertyGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\AssemblyVisibility.cs" />
<Compile Include="Enums.cs" />
<Compile Include="Structs.cs" />
<Compile Include="Helpers.cs" />
Expand Down

0 comments on commit 66ae79f

Please sign in to comment.