Nick Babcock 3 недель назад
Родитель
Сommit
c7d339696a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      OhmGraphite/OhmGraphite.csproj

+ 1 - 1
OhmGraphite/OhmGraphite.csproj

@@ -47,7 +47,7 @@
     <PackageReference Include="InfluxDB.LineProtocol" Version="1.1.1" />
   </ItemGroup>
 
-  <Target Name="ZipOutputPath" AfterTargets="Publish">
+  <Target Name="ZipOutputPath" AfterTargets="Publish" Condition="'$(SelfContained)' == 'true'">
     <RemoveDir Directories="$(BaseOutputPath)tmp\" ContinueOnError="true" />
     <MakeDir Directories="$(BaseOutputPath)tmp\" />
     <Copy SourceFiles="$(OutputPath)\publish\OhmGraphite.exe" DestinationFolder="$(BaseOutputPath)tmp\" />