OhmGraphite.csproj 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <OutputType>Exe</OutputType>
  4. <TargetFramework>net5.0</TargetFramework>
  5. <AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
  6. <PublishSingleFile>true</PublishSingleFile>
  7. <SelfContained>true</SelfContained>
  8. <PublishTrimmed>true</PublishTrimmed>
  9. <IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
  10. <RuntimeIdentifier>win-x64</RuntimeIdentifier>
  11. <PlatformTarget>AnyCPU</PlatformTarget>
  12. <Authors>Nick Babcock</Authors>
  13. <Description>Extract hardware sensor data and exports it to a given host and port in a graphite compatible format</Description>
  14. <Copyright>Nick Babcock</Copyright>
  15. <Major>0</Major>
  16. <Minor>19</Minor>
  17. <Revision>0</Revision>
  18. <AssemblyVersion>$(Major).$(Minor).$(Revision)</AssemblyVersion>
  19. <AssemblyFileVersion>$(Major).$(Minor).$(Revision)</AssemblyFileVersion>
  20. <InformationalVersion>$(Major).$(Minor).$(Revision)</InformationalVersion>
  21. <Version>$(Major).$(Minor).$(Revision)</Version>
  22. <FileVersion>$(Major).$(Minor).$(Revision)</FileVersion>
  23. <ApplicationManifest>app.manifest</ApplicationManifest>
  24. </PropertyGroup>
  25. <ItemGroup>
  26. <Content Include="NLog.config">
  27. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  28. </Content>
  29. <EmbeddedResource Include="..\assets\schema.sql">
  30. <LogicalName>schema.sql</LogicalName>
  31. </EmbeddedResource>
  32. </ItemGroup>
  33. <ItemGroup>
  34. <PackageReference Include="InfluxDB.Client" Version="1.19.0" />
  35. <PackageReference Include="Npgsql" Version="5.0.7" />
  36. <PackageReference Include="prometheus-net" Version="4.1.1" />
  37. <PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
  38. <PackageReference Include="TopShelf" Version="4.3.0" />
  39. <PackageReference Include="Topshelf.NLog" Version="4.3.0" />
  40. <PackageReference Include="InfluxDB.LineProtocol" Version="1.1.1" />
  41. </ItemGroup>
  42. <ItemGroup>
  43. <ProjectReference Include="..\LibreHardwareMonitor\LibreHardwareMonitorLib\LibreHardwareMonitorLib.csproj" />
  44. </ItemGroup>
  45. <Target Name="ZipOutputPath" AfterTargets="Publish">
  46. <RemoveDir Directories="$(BaseOutputPath)tmp\" ContinueOnError="true" />
  47. <MakeDir Directories="$(BaseOutputPath)tmp\" />
  48. <Copy SourceFiles="$(OutputPath)\publish\OhmGraphite.exe" DestinationFolder="$(BaseOutputPath)tmp\" />
  49. <Copy SourceFiles="$(OutputPath)\publish\OhmGraphite.dll.config" DestinationFiles="$(BaseOutputPath)tmp\OhmGraphite.exe.config" />
  50. <Copy SourceFiles="$(OutputPath)\publish\NLog.config" DestinationFolder="$(BaseOutputPath)tmp\" />
  51. <ZipDirectory Overwrite="true" SourceDirectory="$(BaseOutputPath)\tmp" DestinationFile="$(BaseOutputPath)OhmGraphite-$(Major).$(Minor).$(Revision).zip" />
  52. </Target>
  53. </Project>