Skip to content

Commit

Permalink
set LangVersion to 10.0 as latest is discouraged
Browse files Browse the repository at this point in the history
  • Loading branch information
tl-Roberto-Mancinelli committed Nov 28, 2024
1 parent af1d1dc commit fba33ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
12 changes: 4 additions & 8 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<!-- Enable nullable and treat their warnings as errors -->
<!--<Nullable>enable</Nullable>
<WarningsAsErrors>nullable;</WarningsAsErrors>-->
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<PropertyGroup>
<Authors>@benfoster</Authors>
<Company>o9d</Company>
<PackageProjectUrl>https://github.com/truelayer/truelayer-sdk-net</PackageProjectUrl>
<RepositoryUrl>https://github.com/truelayer/truelayer-sdk-net.git</RepositoryUrl>
<Authors>TrueLayer</Authors>
<Company>TrueLayer</Company>
<PackageProjectUrl>https://github.com/truelayer/truelayer-dotnet</PackageProjectUrl>
<RepositoryUrl>https://github.com/truelayer/truelayer-dotnet.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
<PropertyGroup Label="MinVer">
Expand Down
2 changes: 1 addition & 1 deletion src/TrueLayer/TrueLayer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<PackageId>TrueLayer.Client</PackageId>
<Description>.NET client for the TrueLayer API</Description>
<PackageIcon>icon.png</PackageIcon>
<LangVersion>latest</LangVersion>
<LangVersion>10.0</LangVersion>
<Authors>TrueLayer</Authors>
<Company>TrueLayer</Company>
<RepositoryUrl>https://github.com/TrueLayer/truelayer-dotnet</RepositoryUrl>
Expand Down
1 change: 1 addition & 0 deletions test/TrueLayer.Tests/TrueLayer.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net9.0;net8.0;net6.0;netcoreapp3.1</TargetFrameworks>
<IsPackable>false</IsPackable>
<LangVersion>10.0</LangVersion>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable;</WarningsAsErrors>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ public void Should_register_truelayer_client()
WS1/11+TH1x/lgKckAws6sAzJLPtCUZLV4IZTb6ENg==
-----END EC PRIVATE KEY-----";
var configuration = new ConfigurationBuilder()
.AddInMemoryCollection([
.AddInMemoryCollection(new[]
{
new KeyValuePair<string, string?>("TrueLayer:ClientId", "client_id"),
new KeyValuePair<string, string?>("TrueLayer:ClientSecret", "secret"),
new KeyValuePair<string, string?>("TrueLayer:Payments:SigningKey:KeyId", Guid.NewGuid().ToString()),
new KeyValuePair<string, string?>("TrueLayer:Payments:SigningKey:PrivateKey", privateKey)
])
})
.Build();
var services = new ServiceCollection()
.AddTrueLayer(configuration)
Expand Down

0 comments on commit fba33ef

Please sign in to comment.