123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <OutputType>Exe</OutputType>
- <TargetFramework>net5.0</TargetFramework>
- <AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
- <PublishSingleFile>true</PublishSingleFile>
- <SelfContained>true</SelfContained>
- <PublishTrimmed>true</PublishTrimmed>
- <IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
- <RuntimeIdentifier>win-x64</RuntimeIdentifier>
- <PlatformTarget>AnyCPU</PlatformTarget>
- <Authors>Nick Babcock</Authors>
- <Description>Extract hardware sensor data and exports it to a given host and port in a graphite compatible format</Description>
- <Copyright>Nick Babcock</Copyright>
- <Major>0</Major>
- <Minor>19</Minor>
- <Revision>0</Revision>
- <AssemblyVersion>$(Major).$(Minor).$(Revision)</AssemblyVersion>
- <AssemblyFileVersion>$(Major).$(Minor).$(Revision)</AssemblyFileVersion>
- <InformationalVersion>$(Major).$(Minor).$(Revision)</InformationalVersion>
- <Version>$(Major).$(Minor).$(Revision)</Version>
- <FileVersion>$(Major).$(Minor).$(Revision)</FileVersion>
- <ApplicationManifest>app.manifest</ApplicationManifest>
- </PropertyGroup>
- <ItemGroup>
- <Content Include="NLog.config">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- <EmbeddedResource Include="..\assets\schema.sql">
- <LogicalName>schema.sql</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <PackageReference Include="InfluxDB.Client" Version="1.19.0" />
- <PackageReference Include="Npgsql" Version="5.0.7" />
- <PackageReference Include="prometheus-net" Version="4.1.1" />
- <PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
- <PackageReference Include="TopShelf" Version="4.3.0" />
- <PackageReference Include="Topshelf.NLog" Version="4.3.0" />
- <PackageReference Include="InfluxDB.LineProtocol" Version="1.1.1" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\LibreHardwareMonitor\LibreHardwareMonitorLib\LibreHardwareMonitorLib.csproj" />
- </ItemGroup>
- <Target Name="ZipOutputPath" AfterTargets="Publish">
- <RemoveDir Directories="$(BaseOutputPath)tmp\" ContinueOnError="true" />
- <MakeDir Directories="$(BaseOutputPath)tmp\" />
- <Copy SourceFiles="$(OutputPath)\publish\OhmGraphite.exe" DestinationFolder="$(BaseOutputPath)tmp\" />
- <Copy SourceFiles="$(OutputPath)\publish\OhmGraphite.dll.config" DestinationFiles="$(BaseOutputPath)tmp\OhmGraphite.exe.config" />
- <Copy SourceFiles="$(OutputPath)\publish\NLog.config" DestinationFolder="$(BaseOutputPath)tmp\" />
- <ZipDirectory Overwrite="true" SourceDirectory="$(BaseOutputPath)\tmp" DestinationFile="$(BaseOutputPath)OhmGraphite-$(Major).$(Minor).$(Revision).zip" />
- </Target>
- </Project>
|