Skip to content

Commit 5b06c0e

Browse files
committed
OpenHardwareMonitorLib auto-build fix
1 parent 3886c5a commit 5b06c0e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: nuget restore OpenHardwareMonitor.sln
2626

2727
- name: Build
28-
run: msbuild OpenHardwareMonitor.sln -p:Configuration=Debug -m
28+
run: msbuild OpenHardwareMonitor.sln -p:Configuration=Release -m
2929

3030
- name: Publish build
3131
uses: actions/upload-artifact@v4

OpenHardwareMonitorLib/OpenHardwareMonitorLib.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<ItemGroup>
3737
<Reference Include="System.Management" />
3838
</ItemGroup>
39-
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
39+
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition=" '$(Configuration)' == 'Release'">
4040
<Exec Command="for %%f in ($(OutDir)\*) do if not %%~xf==.dll del /S /Q &quot;%%f&quot;" />
4141
</Target>
4242
</Project>

0 commit comments

Comments
 (0)