瀏覽代碼

ILPack automatically for release builds

Nick Babcock 7 年之前
父節點
當前提交
97d109acfe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      OhmGraphite/OhmGraphite.csproj

+ 1 - 1
OhmGraphite/OhmGraphite.csproj

@@ -42,7 +42,7 @@
     <Reference Include="System.Configuration" />
   </ItemGroup>
 
-  <Target Name="ILPack">
+  <Target Name="ILPack" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
     <Exec Command="&quot;$(NuGetPackageRoot)ilrepack\2.0.15\tools\ILRepack.exe&quot; /out:$(OutputPath)OhmGraphite.exe $(OutputPath)OhmGraphite.exe $(OutputPath)Topshelf.dll $(OutputPath)Topshelf.NLog.dll $(OutputPath)NLog.dll $(OutputPath)OpenHardwareMonitorLib.dll" />
   </Target>
 </Project>