Skip to content

Commit 960a9fe

Browse files
committed
Remove unnecessary OpenGL DLLs from publish output
1 parent abd58ca commit 960a9fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/WinDynamicDesktop.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,10 @@
5858
<ItemGroup>
5959
<InternalsVisibleTo Include="WinDynamicDesktop.Tests" />
6060
</ItemGroup>
61+
<Target Name="RemoveUnneededDlls" AfterTargets="ComputeFilesToPublish">
62+
<ItemGroup>
63+
<ResolvedFileToPublish Remove="@(ResolvedFileToPublish)" Condition="$([System.String]::Copy('%(Filename)').StartsWith('OpenTK'))" />
64+
<ResolvedFileToPublish Remove="@(ResolvedFileToPublish)" Condition="'%(Filename)' == 'glfw3'" />
65+
</ItemGroup>
66+
</Target>
6167
</Project>

0 commit comments

Comments
 (0)