Skip to content

Commit b64ef60

Browse files
committed
Update Bogus build tooling; VS 2022, .NET 6 SDK, and C# 10 (#400)
1 parent 1406a8b commit b64ef60

File tree

7 files changed

+16
-18
lines changed

7 files changed

+16
-18
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,11 +1175,11 @@ The following section is only useful for people looking to contribute to **Bogus
11751175

11761176
The minimum requirements to build **Bogus** from source code are as follows:
11771177
* **Windows 7** or later.
1178-
* [**Git for Windows**](https://git-scm.com/downloads) `v2.17.1` or later.
1178+
* [**Git for Windows**](https://git-scm.com/downloads) `v2.33.0` or later.
11791179
* [**.NET Framework**](https://dotnet.microsoft.com/download/dotnet-framework) `v4.7.1`.
1180-
* [**.NET Core SDK**](https://dotnet.microsoft.com/download/dotnet-core/3.1) `SDK v3.1.100` or later.
1181-
* Optional: IDE with C# 8 support.
1182-
* Visual Studio 2019 or later.
1180+
* [**.NET Core SDK**](https://dotnet.microsoft.com/download/dotnet/6.0) `SDK v6.0.100` or later.
1181+
* Optional: IDE with C# 10 support.
1182+
* Visual Studio 2022 or later.
11831183

11841184
#### Build Instructions
11851185
* Download the source code.

Source/Bogus.Tests/Bogus.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net471;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
3+
<TargetFrameworks>net471;netcoreapp2.1;netcoreapp3.1;net6.0</TargetFrameworks>
44
<AssemblyOriginatorKeyFile>
55
</AssemblyOriginatorKeyFile>
66
<SignAssembly>false</SignAssembly>

Source/Bogus.Tests/README_Generator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void get_available_methods()
102102
if( !datasets.ContainsKey(g.Key) ) return; //check if it's accessible
103103
var methods = datasets[g.Key];
104104

105-
var distinctMethods = g.DistinctBy(u => u.Method);
105+
var distinctMethods = MoreEnumerable.DistinctBy(g, u => u.Method);
106106

107107
output.WriteLine("* **`" + g.Key + "`**");
108108
foreach( var m in distinctMethods )
@@ -184,10 +184,10 @@ public void get_randomizer_methods()
184184
foreach (var g in all)
185185
{
186186
//if (!datasets.ContainsKey(g.Key)) return; //check if it's accessible
187-
var distinctMethods = g
187+
var sortedMethods = g
188188
.OrderBy(x => x.Method)
189-
.ThenBy(x => x.Summary.Length)
190-
.DistinctBy(u => u.Method);
189+
.ThenBy(x => x.Summary.Length);
190+
var distinctMethods = MoreEnumerable.DistinctBy(sortedMethods, u => u.Method);
191191
//we need to do this ordering so we select the most
192192
//succinct description for any method overloads.
193193

Source/Bogus.sln

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29613.14
5-
MinimumVisualStudioVersion = 16.0.29613.14
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
5+
MinimumVisualStudioVersion = 17.0.31903.59
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bogus", "Bogus\Bogus.csproj", "{340A2FE9-5B52-4FD7-9D21-83CCF1621E09}"
77
EndProject
88
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bogus.Tests", "Bogus.Tests\Bogus.Tests.csproj", "{C738E347-08EF-47DA-B531-EE99739BD759}"
@@ -18,7 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Root", "Root", "{5CA98FAF-2
1818
..\README.md = ..\README.md
1919
EndProjectSection
2020
EndProject
21-
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Builder", "Builder\Builder.fsproj", "{2E878DDF-5585-48F2-85E0-748579278C9A}"
21+
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Builder", "Builder\Builder.fsproj", "{2E878DDF-5585-48F2-85E0-748579278C9A}"
2222
EndProject
2323
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Benchmark", "Benchmark\Benchmark.csproj", "{B8239D68-FBFA-4AAD-98E8-75405EA5B71C}"
2424
EndProject
@@ -37,9 +37,7 @@ Global
3737
{C738E347-08EF-47DA-B531-EE99739BD759}.Release|Any CPU.ActiveCfg = Release|Any CPU
3838
{C738E347-08EF-47DA-B531-EE99739BD759}.Release|Any CPU.Build.0 = Release|Any CPU
3939
{2E878DDF-5585-48F2-85E0-748579278C9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40-
{2E878DDF-5585-48F2-85E0-748579278C9A}.Debug|Any CPU.Build.0 = Debug|Any CPU
4140
{2E878DDF-5585-48F2-85E0-748579278C9A}.Release|Any CPU.ActiveCfg = Release|Any CPU
42-
{2E878DDF-5585-48F2-85E0-748579278C9A}.Release|Any CPU.Build.0 = Release|Any CPU
4341
{B8239D68-FBFA-4AAD-98E8-75405EA5B71C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4442
{B8239D68-FBFA-4AAD-98E8-75405EA5B71C}.Debug|Any CPU.Build.0 = Debug|Any CPU
4543
{B8239D68-FBFA-4AAD-98E8-75405EA5B71C}.Release|Any CPU.ActiveCfg = Release|Any CPU

Source/Bogus/Bogus.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PackageReleaseNotes>
66
<Version>0.0.0-localbuild</Version>
77
<Authors>Brian Chavez</Authors>
8-
<TargetFrameworks>net40;netstandard1.3;netstandard2.0</TargetFrameworks>
8+
<TargetFrameworks>net40;netstandard1.3;netstandard2.0;net6.0</TargetFrameworks>
99
<CodeAnalysisRuleSet>Bogus.ruleset</CodeAnalysisRuleSet>
1010
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1111
<AssemblyOriginatorKeyFile>

Source/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<LangVersion>9.0</LangVersion>
3+
<LangVersion>10.0</LangVersion>
44
</PropertyGroup>
55
</Project>

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: '{build}'
2-
image: Visual Studio 2019
2+
image: Visual Studio 2022
33

44
environment:
55
FAKE_DETAILED_ERRORS: true

0 commit comments

Comments
 (0)