Skip to content

Commit f664ecc

Browse files
committed
Add OpenSSL dlls to project, copy x86 or x64 version to output dir
1 parent 1b2cdcd commit f664ecc

File tree

6 files changed

+13
-0
lines changed

6 files changed

+13
-0
lines changed

src/DriverTest/DriverTest.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@
9797
</ProjectReference>
9898
</ItemGroup>
9999
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
100+
<PropertyGroup>
101+
<PostBuildEvent>xcopy /y /d "$(SolutionDir)S7CommPlusDriver\OpenSSL-dll-$(PlatformName)\*.dll" "$(ProjectDir)$(OutDir)"</PostBuildEvent>
102+
</PropertyGroup>
100103
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
101104
Other similar extension points exist, see Microsoft.Common.targets.
102105
<Target Name="BeforeBuild">
4.91 MB
Binary file not shown.
760 KB
Binary file not shown.
3.58 MB
Binary file not shown.
611 KB
Binary file not shown.

src/S7CommPlusDriver/S7CommPlusDriver.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,16 @@
127127
</ItemGroup>
128128
<ItemGroup>
129129
<None Include="App.config" />
130+
<None Include="OpenSSL-dll-x86\libcrypto-3.dll" />
131+
<None Include="OpenSSL-dll-x86\libssl-3.dll" />
132+
</ItemGroup>
133+
<ItemGroup />
134+
<ItemGroup>
135+
<Content Include="OpenSSL-dll-x64\libcrypto-3-x64.dll" />
136+
<Content Include="OpenSSL-dll-x64\libssl-3-x64.dll" />
130137
</ItemGroup>
131138
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
139+
<PropertyGroup>
140+
<PostBuildEvent>xcopy /y /d "$(ProjectDir)OpenSSL-dll-$(PlatformName)\*.dll" "$(ProjectDir)$(OutDir)"</PostBuildEvent>
141+
</PropertyGroup>
132142
</Project>

0 commit comments

Comments
 (0)