Skip to content

Commit e575bcf

Browse files
committed
Fix the nuget version to be compatible with .NET 8.
1 parent ebad0ff commit e575bcf

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/ZeroQL.SourceGenerators/Utils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public static string SpaceLeft(this string text, int lenght, int mult = 4)
114114

115115
public static string JoinWithNewLine(this IEnumerable<string> values, string separator = "")
116116
{
117-
return string.Join($"{separator}{Environment.NewLine}", values);
117+
return string.Join($"{separator}\n", values);
118118
}
119119

120120
public static string ToGraphQLType(this ISymbol symbol, bool verifyNullability = false)

src/ZeroQL.SourceGenerators/ZeroQL.SourceGenerators.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<IncludeBuildOutput>false</IncludeBuildOutput>
66
<LangVersion>Latest</LangVersion>
77
<Nullable>enable</Nullable>
8+
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
89
</PropertyGroup>
910

1011
<ItemGroup>
@@ -18,7 +19,7 @@
1819
<PrivateAssets>all</PrivateAssets>
1920
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2021
</PackageReference>
21-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
22+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8" />
2223
</ItemGroup>
2324

2425
</Project>

src/ZeroQL.Tests/ZeroQL.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
<PrivateAssets>all</PrivateAssets>
2020
</PackageReference>
21-
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.14.0" />
21+
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.8" />
2222
<PackageReference Include="Buildalyzer" Version="5.0.0" />
2323
<PackageReference Include="Buildalyzer.Workspaces" Version="5.0.0" />
2424
</ItemGroup>

src/ZeroQL.Tools/Extensions/StringExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static string Join(this IEnumerable<string>? values, string separator = "
1818

1919
public static string JoinWithNewLine(this IEnumerable<string>? values, int gap = 0)
2020
{
21-
return values.Join(Environment.NewLine);
21+
return values.Join("\n");
2222
}
2323

2424
#if !NETSTANDARD

0 commit comments

Comments
 (0)