Skip to content

Commit

Permalink
Move packages to packages.props
Browse files Browse the repository at this point in the history
Update all nuget dependencies
Change runtime of tests to be based on .net 6.0

Signed-off-by: Ken Christensen <[email protected]>
  • Loading branch information
Kencdk committed Jul 9, 2022
1 parent 4d14b6b commit 62183b2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.0.79" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<LangVersion>9.0</LangVersion>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="DnsClient" Version="1.5.0" />
<PackageReference Include="Kenc.Cloudflare" Version="0.0.514.3" />
<PackageReference Include="CommandLineParser" />
<PackageReference Include="DnsClient" />
<PackageReference Include="Kenc.Cloudflare" />
</ItemGroup>

<ItemGroup>
Expand Down
14 changes: 7 additions & 7 deletions src/Libraries/ACMELib.Tests/Kenc.ACMELibCore.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.0.79" />
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>

<IsPackable>false</IsPackable>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="Moq" Version="4.16.1" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.7" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.7" />
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
</ItemGroup>

<ItemGroup>
Expand Down
23 changes: 18 additions & 5 deletions src/Packages.props
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
<Project>
<ItemGroup>
<PackageReference Update="Microsoft.Extensions.Http" Version="5.0.0" />
<PackageReference Update="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Update="System.Text.Json" Version="5.0.2" />
<!-- net framework packages -->
<PackageReference Update="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageReference Update="Microsoft.Extensions.Logging.Abstractions" Version="6.0.1" />
<PackageReference Update="System.Text.Json" Version="6.0.5" />

<!-- other libraries -->
<PackageReference Update="CommandLineParser" Version="2.9.1" />
<PackageReference Update="DnsClient" Version="1.6.1" />
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Update="Kenc.Cloudflare" Version="0.0.514.3" />

<!-- Test libraries -->
<PackageReference Update="FluentAssertions" Version="6.7.0" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.2.0" />
<PackageReference Update="Moq" Version="4.18.1" />
<PackageReference Update="MSTest.TestAdapter" Version="2.2.10" />
<PackageReference Update="MSTest.TestFramework" Version="2.2.10" />

<!-- Static analysis -->
<GlobalPackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="5.0.3">
<GlobalPackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</GlobalPackageReference>
Expand Down

0 comments on commit 62183b2

Please sign in to comment.