Adjust the glob pattern to select only one .nupkg file. In #1928 nuget generation changed so that there's one main nupkg to publish and platform library artifacts have their own platform specific ones. Changes from before: * Add x86 to build process. - Use recommended structure for multi-platform nuget. - Separate build and pack to allow x64 and x86 builds. - Use matrix in Github Actions to reduce repetition. * Properly implement multi-platform nuget build. - Split build pipeline to setting version, building and packing. - Build AnyCPU only as reference assemblies. - Add ref folder to nuget. * Restructure project and pipeline. Based on PR review discussion. - Restore default x64,x86 build process. - Build generates platform specific nupkg. - Remove AnyCPU platform to prevent confusion. - Add custom property for building reference libraries. - AnyCPU is only set by the property. - Move nuget changes to separate target file. - Imported only when custom property is set. - Clear separation from the default build. - Merge frameworks in published library artifacts. - Re-simplify pipelines; no matrix or separate jobs.
75 lines
4.0 KiB
XML
75 lines
4.0 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>
|
|
<Platforms>x64;x86</Platforms>
|
|
<RuntimeIdentifiers>win-x64;win-x86</RuntimeIdentifiers>
|
|
<NoWarn>$(NoWarn);CA1416</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(BuildOnlyRefs)'=='true'">
|
|
<Platform>AnyCPU</Platform>
|
|
<ProduceOnlyReferenceAssembly>true</ProduceOnlyReferenceAssembly>
|
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
|
<OutputPath>..\bin\Debug\$(Platform)\</OutputPath>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
|
<OutputPath>..\bin\Release\$(Platform)\</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.6.3" />
|
|
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.205">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="RAMSPDToolkit-NDD" Version="1.3.2" />
|
|
<PackageReference Include="System.Management" Version="9.0.9" />
|
|
<PackageReference Include="System.Memory" Version="4.6.3" Condition="'$(TargetFramework)' == 'net472'" />
|
|
<PackageReference Include="System.Threading.AccessControl" Version="9.0.9" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="Resources\packageicon.png" PackagePath="">
|
|
<Pack>True</Pack>
|
|
</None>
|
|
</ItemGroup>
|
|
<Import Project="main.nuget.target" Condition="'$(PackMainNuget)' == 'true'" />
|
|
</Project>
|