Skip to content

Commit

Permalink
Get C# 12 language features
Browse files Browse the repository at this point in the history
  • Loading branch information
brantburnett committed May 28, 2024
1 parent 5431862 commit 1a321d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/Yardarm.CommandLine/Yardarm.CommandLine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" />
<PackageReference Include="Microsoft.OpenApi.Readers" Version="1.3.2" />
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/main/Yardarm/Generation/ResourceSyntaxTreeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private SyntaxTree ParseResource(string resourceName)

SyntaxTree syntaxTree = CSharpSyntaxTree.ParseText(SourceText.From(rawText, Encoding.UTF8),
CSharpParseOptions.Default
.WithLanguageVersion(LanguageVersion.CSharp11)
.WithLanguageVersion(LanguageVersion.CSharp12)
.WithPreprocessorSymbols(GenerationContext.PreprocessorSymbols),
path: PathHelpers.Combine(
GenerationContext.Settings.BasePath,
Expand Down
4 changes: 2 additions & 2 deletions src/main/Yardarm/Yardarm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.7.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.9.2" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
<PackageReference Include="Microsoft.OpenApi" Version="1.4.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
Expand Down

0 comments on commit 1a321d5

Please sign in to comment.