Skip to content

Commit

Permalink
Hide native dlls in Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Kpama committed Aug 4, 2023
1 parent a24534a commit dbe2bcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/LightningDB/LightningDB.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<LightningDBTargetRuntimeRelativePath Condition=" '$(LightningDBTargetRuntimeRelativePath)' == '' ">\..\</LightningDBTargetRuntimeRelativePath>
</PropertyGroup>
<Target Name="LightningDBIncludeNativeDll" AfterTargets="BeforeResolveReferences">
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)$(LightningDBTargetRuntimeRelativePath)runtimes\win-x86\native\*"
CopyToOutputDirectory="PreserveNewest"
Expand All @@ -27,4 +28,5 @@
CopyToOutputDirectory="PreserveNewest"
Condition="'$([MSBuild]::IsOsPlatform(Linux))' And '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)'=='X64'" />
</ItemGroup>
</Target>
</Project>

0 comments on commit dbe2bcb

Please sign in to comment.