OhmGraphite.csproj 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <OutputType>Exe</OutputType>
  4. <TargetFramework>net461</TargetFramework>
  5. <AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
  6. <PlatformTarget>AnyCPU</PlatformTarget>
  7. <Authors>Nick Babcock</Authors>
  8. <Description>Extract hardware sensor data and exports it to a given host and port in a graphite compatible format</Description>
  9. <Copyright>Nick Babcock</Copyright>
  10. <Major>0</Major>
  11. <Minor>10</Minor>
  12. <Revision>0</Revision>
  13. <AssemblyVersion>$(Major).$(Minor).$(Revision)</AssemblyVersion>
  14. <AssemblyFileVersion>$(Major).$(Minor).$(Revision)</AssemblyFileVersion>
  15. <InformationalVersion>$(Major).$(Minor).$(Revision)</InformationalVersion>
  16. <Version>$(Major).$(Minor).$(Revision)</Version>
  17. <FileVersion>$(Major).$(Minor).$(Revision)</FileVersion>
  18. <ApplicationManifest>app.manifest</ApplicationManifest>
  19. </PropertyGroup>
  20. <ItemGroup>
  21. <Content Include="NLog.config">
  22. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  23. </Content>
  24. <EmbeddedResource Include="..\assets\schema.sql" />
  25. </ItemGroup>
  26. <ItemGroup>
  27. <PackageReference Include="Costura.Fody" Version="3.3.2" />
  28. <PackageReference Include="NLog.Config" Version="4.6.8" />
  29. <PackageReference Include="Npgsql" Version="4.1.2" />
  30. <PackageReference Include="prometheus-net" Version="3.4.0" />
  31. <PackageReference Include="Resourcer.Fody" Version="1.7.3" />
  32. <PackageReference Include="TopShelf" Version="4.2.1" />
  33. <PackageReference Include="Topshelf.NLog" Version="4.2.1" />
  34. <PackageReference Include="InfluxDB.LineProtocol" Version="1.1.0" />
  35. <PackageReference Include="MSBuildTasks" Version="1.5.0.235" />
  36. </ItemGroup>
  37. <ItemGroup>
  38. <!-- May need to add in "AdditionalProperties="TargetFramework=net461"" or something
  39. like that in the future as errors arising from Hidl library about not being
  40. compatible with netstandard 2.0 is annoying (but doesn't break the build).
  41. For inspiration, see: https://stackoverflow.com/a/48530388/433785 -->
  42. <ProjectReference Include="..\LibreHardwareMonitor\OpenHardwareMonitorLib.csproj" />
  43. </ItemGroup>
  44. <ItemGroup>
  45. <Reference Include="System.Configuration" />
  46. </ItemGroup>
  47. <Target Name="PackExecutable" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
  48. <Zip Files="$(OutputPath)OhmGraphite.exe;$(OutputPath)OhmGraphite.exe.config;$(OutputPath)NLog.config" WorkingDirectory="$(OutputPath)" ZipFileName="$(BaseOutputPath)OhmGraphite-$(Major).$(Minor).$(Revision).zip" />
  49. </Target>
  50. </Project>