Use Central Package Management for NuGet 6.2+ (#879)

This commit is contained in:
Pomian
2022-11-18 19:02:07 +01:00
committed by GitHub
parent fd723f38ed
commit f1ea904735
5 changed files with 36 additions and 15 deletions
+5
View File
@@ -3,4 +3,9 @@
<Version>0.9.1</Version>
<Copyright>LibreHardwareMonitor</Copyright>
</PropertyGroup>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
</Project>
+14
View File
@@ -0,0 +1,14 @@
<Project>
<ItemGroup>
<PackageVersion Include="HidSharp" Version="2.1.0" />
<PackageVersion Include="Microsoft.Win32.Registry" Version="5.0.0" />
<PackageVersion Include="Mono.Posix.NETStandard" Version="1.0.0" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.1" />
<PackageVersion Include="OxyPlot.Core" Version="2.1.0" />
<PackageVersion Include="OxyPlot.WindowsForms" Version="2.1.0" />
<PackageVersion Include="System.IO.FileSystem.AccessControl" Version="5.0.0" />
<PackageVersion Include="System.IO.Ports" Version="7.0.0" />
<PackageVersion Include="System.Management" Version="7.0.0" />
<PackageVersion Include="TaskScheduler" Version="2.10.1" />
</ItemGroup>
</Project>
+4 -2
View File
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29306.81
# Visual Studio Version 17
VisualStudioVersion = 17.4.33103.184
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibreHardwareMonitorLib", "LibreHardwareMonitorLib\LibreHardwareMonitorLib.csproj", "{B0397530-545A-471D-BB74-027AE456DF1A}"
EndProject
@@ -18,6 +18,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
Directory.Build.props = Directory.Build.props
Directory.Packages.props = Directory.Packages.props
nuget.config = nuget.config
EndProjectSection
EndProject
Global
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net472</TargetFramework>
@@ -11,7 +11,7 @@
<StartupObject>LibreHardwareMonitor.Program</StartupObject>
<UseWindowsForms>true</UseWindowsForms>
<OutputPath>..\bin\$(Configuration)\</OutputPath>
<LangVersion>latest</LangVersion>
<LangVersion>latest</LangVersion>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -21,11 +21,11 @@
<DebugType>none</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="TaskScheduler" Version="2.10.1" />
<PackageReference Include="OxyPlot.Core" Version="2.1.0" />
<PackageReference Include="OxyPlot.WindowsForms" Version="2.1.0" />
<PackageReference Include="System.Management" Version="7.0.0" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="TaskScheduler" />
<PackageReference Include="OxyPlot.Core" />
<PackageReference Include="OxyPlot.WindowsForms" />
<PackageReference Include="System.Management" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Web" />
@@ -34,14 +34,14 @@
<EmbeddedResource Include="Resources\WinRing0x64.gz" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' != 'net472'">
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
<PackageReference Include="System.IO.Ports" Version="7.0.0" />
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="5.0.0" />
<PackageReference Include="Mono.Posix.NETStandard" Version="1.0.0" />
<PackageReference Include="Microsoft.Win32.Registry" />
<PackageReference Include="System.IO.Ports" />
<PackageReference Include="System.IO.FileSystem.AccessControl" />
<PackageReference Include="Mono.Posix.NETStandard" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="HidSharp" Version="2.1.0" />
<PackageReference Include="System.Management" Version="7.0.0" />
<PackageReference Include="HidSharp" />
<PackageReference Include="System.Management" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\packageicon.png" PackagePath="">