Files
ReLibreHardwareMonitor/LibreHardwareMonitorLib/LibreHardwareMonitorLib.csproj
T
Blacktempel bb65e069fd Fix memory only being available for Intel (#1887)
* Current implementation of PawnIo.LoadModuleFromResource swallows exceptions instead of throwing them like it has been previously.
It also returns a not-null PawnIo object.
RAMSPDToolkitDriver has been catching exception, returning false for LoadModule and checking if returned object is null.
Therefore the return for a failed loaded module was true where it should have been false.

Returning null from PawnIo.LoadModuleFromResource in catch block fixes this issue.

* Add IsValid property for PawnIo and check in RAMSPDToolkitDriver.
Remove null return.

* Update RAMSPDToolkit to newest version.
Fixes bug in .NET Framework and changed PawnIO interface due to adjusted Piix4 detection.

Add new Data sensor.

* Rename property.
2025-09-23 10:38:48 +02:00

60 lines
3.1 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net472;netstandard2.0;net8.0;net9.0</TargetFrameworks>
<AssemblyName>LibreHardwareMonitorLib</AssemblyName>
<RootNamespace>LibreHardwareMonitor</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageId>$(AssemblyName)</PackageId>
<Description>Monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer.</Description>
<PackageLicense>https://github.com/LibreHardwareMonitor/LibreHardwareMonitor/blob/master/Licenses/LICENSE</PackageLicense>
<PackageLicenseExpression>MPL-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/LibreHardwareMonitor/LibreHardwareMonitor</PackageProjectUrl>
<PackageTags>libre open hardware monitor monitoring system logging cpu gpu</PackageTags>
<PackageVersion>$(Version)</PackageVersion>
<Pack>true</Pack>
<RepositoryUrl>https://github.com/LibreHardwareMonitor/LibreHardwareMonitor</RepositoryUrl>
<LangVersion>latest</LangVersion>
<PackageIcon>packageicon.png</PackageIcon>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<OutputPath>..\bin\Debug\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<OutputPath>..\bin\Release\</OutputPath>
</PropertyGroup>
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\PawnIO\LpcIO.bin" />
<EmbeddedResource Include="Resources\PawnIo\LpcACPIEC.bin" />
<EmbeddedResource Include="Resources\PawnIo\IntelMSR.bin" />
<EmbeddedResource Include="Resources\PawnIo\RyzenSMU.bin" />
<EmbeddedResource Include="Resources\PawnIo\AMDFamily0F.bin" />
<EmbeddedResource Include="Resources\PawnIo\AMDFamily10.bin" />
<EmbeddedResource Include="Resources\PawnIo\AMDFamily17.bin" />
<EmbeddedResource Include="Resources\PawnIO\SmbusI801.bin" />
<EmbeddedResource Include="Resources\PawnIO\SmbusNCT6793.bin" />
<EmbeddedResource Include="Resources\PawnIO\SmbusPIIX4.bin" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' != 'net472'">
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
<PackageReference Include="System.IO.Ports" Version="9.0.9" />
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="5.0.0" />
<PackageReference Include="Mono.Posix.NETStandard" Version="1.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="HidSharp" Version="2.1.0" />
<PackageReference Include="RAMSPDToolkit-NDD" Version="1.3.2" />
<PackageReference Include="System.Management" Version="9.0.9" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\packageicon.png" PackagePath="">
<Pack>True</Pack>
</None>
</ItemGroup>
</Project>