Skip to content

Commit

Permalink
Upgrade to .NET 8, move to central package management and upgrade Spe…
Browse files Browse the repository at this point in the history
…ctre.Console to latest, among other packages for testing
  • Loading branch information
Moaid Hathot committed Nov 25, 2023
1 parent d24c65a commit ce14f5c
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 37 deletions.
16 changes: 16 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Spectre.Console" Version="0.48.0" />
<PackageVersion Include="FakeItEasy" Version="8.0.0" />
<PackageVersion Include="FakeItEasy.Analyzer.CSharp" Version="6.1.1" />
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.0.2" />
<PackageVersion Include="MSTest.TestFramework" Version="3.0.2" />
<PackageVersion Include="coverlet.collector" Version="3.2.0" />
</ItemGroup>
</Project>

5 changes: 4 additions & 1 deletion src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,7 @@ dotnet_naming_rule.private_fields_must_begin_with_underscore_and_be_in_camel_cas


# CS0219: Variable is assigned but its value is never used
dotnet_diagnostic.CS0219.severity = none
dotnet_diagnostic.CS0219.severity = none

# SYSLIB0050: Type or member is obsolete
dotnet_diagnostic.SYSLIB0050.severity = none
14 changes: 7 additions & 7 deletions src/Dumpify.Playground/Dumpify.Playground.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Dumpify\Dumpify.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Dumpify\Dumpify.csproj" />
</ItemGroup>

</Project>
8 changes: 4 additions & 4 deletions src/Dumpify.Playground/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
//DumpConfig.Default.Output = Outputs.Debug;

Console.WriteLine("---------------------");
DumpConfig.Default.TableConfig.ShowMemberTypes = true;
TestSpecific();
// TestSingle();
// ShowEverything();
Expand All @@ -36,9 +35,10 @@ void TestSpecific()
//}
//

var str = new { fa = "Hello" }.Dump(autoLabel: "3bla");
DumpConfig.Default.UseAutoLabels = false;
var str2 = new { fa = "Hello" }.Dump();
var str = new { fa = "Hello", bla = "Word!" }.Dump("my label");
DumpConfig.Default.UseAutoLabels = true;
DumpConfig.Default.TableConfig.ShowMemberTypes = true;
var str2 = new { fa = "Hello", bla = "World!" }.Dump();



Expand Down
46 changes: 23 additions & 23 deletions src/Dumpify.Tests/Dumpify.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FakeItEasy" Version="7.3.1" />
<PackageReference Include="FakeItEasy.Analyzer.CSharp" Version="6.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="6.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.0.2" />
<PackageReference Include="MSTest.TestFramework" Version="3.0.2" />
<PackageReference Include="coverlet.collector" Version="3.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="FakeItEasy" />
<PackageReference Include="FakeItEasy.Analyzer.CSharp">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Dumpify\Dumpify.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Dumpify\Dumpify.csproj" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/Dumpify/Dumpify.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<PackageReadmeFile>nuget.md</PackageReadmeFile>
</PropertyGroup>

Expand All @@ -10,7 +10,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Spectre.Console" Version="0.47.0" />
<PackageReference Include="Spectre.Console" />
</ItemGroup>

</Project>

0 comments on commit ce14f5c

Please sign in to comment.