Skip to content

Commit 99d7cc1

Browse files
Set LangVersion to 10.0 as latest is discouraged (#234)
1 parent eb939b4 commit 99d7cc1

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

Directory.Build.props

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
<Project>
22
<PropertyGroup>
3-
<LangVersion>latest</LangVersion>
4-
<!-- Enable nullable and treat their warnings as errors -->
5-
<!--<Nullable>enable</Nullable>
6-
<WarningsAsErrors>nullable;</WarningsAsErrors>-->
73
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
84
</PropertyGroup>
95
<PropertyGroup>
10-
<Authors>@benfoster</Authors>
11-
<Company>o9d</Company>
12-
<PackageProjectUrl>https://github.com/truelayer/truelayer-sdk-net</PackageProjectUrl>
13-
<RepositoryUrl>https://github.com/truelayer/truelayer-sdk-net.git</RepositoryUrl>
6+
<Authors>TrueLayer</Authors>
7+
<Company>TrueLayer</Company>
8+
<PackageProjectUrl>https://github.com/truelayer/truelayer-dotnet</PackageProjectUrl>
9+
<RepositoryUrl>https://github.com/truelayer/truelayer-dotnet.git</RepositoryUrl>
1410
<RepositoryType>git</RepositoryType>
1511
</PropertyGroup>
1612
<PropertyGroup Label="MinVer">

src/TrueLayer/TrueLayer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<PackageId>TrueLayer.Client</PackageId>
77
<Description>.NET client for the TrueLayer API</Description>
88
<PackageIcon>icon.png</PackageIcon>
9-
<LangVersion>latest</LangVersion>
9+
<LangVersion>10.0</LangVersion>
1010
<Authors>TrueLayer</Authors>
1111
<Company>TrueLayer</Company>
1212
<RepositoryUrl>https://github.com/TrueLayer/truelayer-dotnet</RepositoryUrl>

test/TrueLayer.Tests/TrueLayer.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<PropertyGroup>
33
<TargetFrameworks>net9.0;net8.0;net6.0;netcoreapp3.1</TargetFrameworks>
44
<IsPackable>false</IsPackable>
5+
<LangVersion>10.0</LangVersion>
56
<Nullable>enable</Nullable>
67
<WarningsAsErrors>nullable;</WarningsAsErrors>
78
</PropertyGroup>

test/TrueLayer.Tests/TrueLayerServiceCollectionExtensionsTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ public void Should_register_truelayer_client()
2020
WS1/11+TH1x/lgKckAws6sAzJLPtCUZLV4IZTb6ENg==
2121
-----END EC PRIVATE KEY-----";
2222
var configuration = new ConfigurationBuilder()
23-
.AddInMemoryCollection([
23+
.AddInMemoryCollection(new[]
24+
{
2425
new KeyValuePair<string, string?>("TrueLayer:ClientId", "client_id"),
2526
new KeyValuePair<string, string?>("TrueLayer:ClientSecret", "secret"),
2627
new KeyValuePair<string, string?>("TrueLayer:Payments:SigningKey:KeyId", Guid.NewGuid().ToString()),
2728
new KeyValuePair<string, string?>("TrueLayer:Payments:SigningKey:PrivateKey", privateKey)
28-
])
29+
})
2930
.Build();
3031
var services = new ServiceCollection()
3132
.AddTrueLayer(configuration)

0 commit comments

Comments
 (0)