Skip to content

Commit 4605d4e

Browse files
authored
Merge pull request #4 from FantasyTeddy/small-improvements
Small improvements
2 parents 165ad39 + c913210 commit 4605d4e

File tree

4 files changed

+17
-28
lines changed

4 files changed

+17
-28
lines changed

Functions/Functions.csproj

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<Project Sdk="Microsoft.NET.Sdk">
32
<PropertyGroup>
43
<TargetFramework>netstandard2.0</TargetFramework>
@@ -23,36 +22,26 @@
2322
<PackageIcon>icon.png</PackageIcon>
2423
<PackageReadmeFile>README.md</PackageReadmeFile>
2524
<RepositoryUrl>https://github.com/supabase-community/functions-csharp</RepositoryUrl>
26-
</PropertyGroup>
27-
<PropertyGroup>
2825
<IncludeSymbols>true</IncludeSymbols>
2926
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
30-
</PropertyGroup>
31-
<PropertyGroup>
3227
<GenerateDocumentationFile>true</GenerateDocumentationFile>
33-
</PropertyGroup>
34-
<PropertyGroup>
3528
<Nullable>enable</Nullable>
3629
<LangVersion>8.0</LangVersion>
3730
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
3831
</PropertyGroup>
32+
3933
<PropertyGroup Condition=" '$(Version)' == '' ">
4034
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">1.3.1</VersionPrefix>
41-
<VersionSuffix Condition=" '$(VersionSuffix)' == '' ">
42-
</VersionSuffix>
35+
<VersionSuffix Condition=" '$(VersionSuffix)' == '' "></VersionSuffix>
4336
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix)</Version>
4437
<Version Condition=" '$(Version)' == '' ">$(VersionPrefix)</Version>
4538
</PropertyGroup>
46-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
47-
<LangVersion>8.0</LangVersion>
48-
</PropertyGroup>
49-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
50-
<LangVersion>8.0</LangVersion>
51-
</PropertyGroup>
39+
5240
<ItemGroup>
5341
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
5442
<PackageReference Include="supabase-core" Version="0.0.3" />
5543
</ItemGroup>
44+
5645
<ItemGroup>
5746
<None Include="..\.github\icon.png" Pack="true" Link="icon.png" PackagePath="\" />
5847
<None Include="..\README.md" Pack="true" Link="README.md" PackagePath="\" />

FunctionsTests/ClientTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ namespace FunctionsTests
1313
[TestClass]
1414
public class ClientTests
1515
{
16-
Client _client;
17-
string _token;
16+
private Client _client = null!;
17+
private string _token = null!;
1818

1919
[TestInitialize]
2020
public void Initialize()

FunctionsTests/FunctionsTests.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
5-
4+
<TargetFramework>net8.0</TargetFramework>
65
<IsPackable>false</IsPackable>
7-
<ReleaseVersion>1.2.1</ReleaseVersion>
6+
<Nullable>enable</Nullable>
87
</PropertyGroup>
98

109
<ItemGroup>
1110
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.31.0" />
1211
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
1312
<PackageReference Include="MSTest.TestAdapter" Version="3.0.4" />
1413
<PackageReference Include="MSTest.TestFramework" Version="3.0.4" />
15-
<PackageReference Include="coverlet.collector" Version="6.0.0"><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16-
<PrivateAssets>all</PrivateAssets>
17-
</PackageReference>
14+
<PackageReference Include="coverlet.collector" Version="6.0.0">
15+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16+
<PrivateAssets>all</PrivateAssets>
17+
</PackageReference>
1818
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.31.0" />
1919
</ItemGroup>
2020

functions-csharp.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{D620
1717
EndProject
1818
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{11445079-7FD7-4A84-972D-328B82AF1238}"
1919
ProjectSection(SolutionItems) = preProject
20+
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
2021
.github\workflows\build-documentation.yaml = .github\workflows\build-documentation.yaml
21-
.github\workflows\dotnet-core.yml = .github\workflows\dotnet-core.yml
2222
.github\workflows\release.yml = .github\workflows\release.yml
2323
EndProjectSection
2424
EndProject
@@ -40,6 +40,10 @@ Global
4040
GlobalSection(SolutionProperties) = preSolution
4141
HideSolutionNode = FALSE
4242
EndGlobalSection
43+
GlobalSection(NestedProjects) = preSolution
44+
{D6201965-1A00-435E-965B-B0D66E74F33B} = {228693BB-A395-4123-93E8-5299FF875615}
45+
{11445079-7FD7-4A84-972D-328B82AF1238} = {D6201965-1A00-435E-965B-B0D66E74F33B}
46+
EndGlobalSection
4347
GlobalSection(ExtensibilityGlobals) = postSolution
4448
SolutionGuid = {3CB8EBAC-5D93-461A-8D2D-B83A69E49B4B}
4549
EndGlobalSection
@@ -50,8 +54,4 @@ Global
5054
$0.VersionControlPolicy = $2
5155
version = 2.4.0
5256
EndGlobalSection
53-
GlobalSection(NestedProjects) = preSolution
54-
{D6201965-1A00-435E-965B-B0D66E74F33B} = {228693BB-A395-4123-93E8-5299FF875615}
55-
{11445079-7FD7-4A84-972D-328B82AF1238} = {D6201965-1A00-435E-965B-B0D66E74F33B}
56-
EndGlobalSection
5757
EndGlobal

0 commit comments

Comments
 (0)