Files
ReLibreHardwareMonitor/LibreHardwareMonitorLib/main.nuget.target
T
Teemu Korhonen 33f6ec63eb Fix publishing to Nuget feed. (#1939)
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.
2025-10-06 19:49:13 +02:00

27 lines
1.2 KiB
SYSTEMD

<!-- For packing the multi-platform nuget after building x64, x86 and reference libs -->
<Project>
<PropertyGroup>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NoWarn>$(NoWarn);NU5131</NoWarn>
</PropertyGroup>
<ItemGroup>
<None Include="..\bin\$(Configuration)\x64\**\LibreHardwareMonitorLib.dll" Pack="true">
<PackagePath>runtimes\win-x64\lib\</PackagePath>
</None>
<None Include="..\bin\$(Configuration)\x64\**\LibreHardwareMonitorLib.xml" Pack="true">
<PackagePath>runtimes\win-x64\lib\</PackagePath>
</None>
<None Include="..\bin\$(Configuration)\x86\**\LibreHardwareMonitorLib.dll" Pack="true">
<PackagePath>runtimes\win-x86\lib\</PackagePath>
</None>
<None Include="..\bin\$(Configuration)\x86\**\LibreHardwareMonitorLib.xml" Pack="true">
<PackagePath>runtimes\win-x86\lib\</PackagePath>
</None>
<None Include="..\bin\$(Configuration)\AnyCPU\**\LibreHardwareMonitorLib.dll" Pack="true">
<PackagePath>ref\</PackagePath>
</None>
<None Include="..\bin\$(Configuration)\AnyCPU\**\LibreHardwareMonitorLib.xml" Pack="true">
<PackagePath>ref\</PackagePath>
</None>
</ItemGroup>
</Project>