Skip to content

Commit

Permalink
feat: support csharp10
Browse files Browse the repository at this point in the history
  • Loading branch information
rdavisau committed Oct 3, 2021
1 parent 10f1fa6 commit 2b09211
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/tbc.core/tbc.core.csproj
Expand Up @@ -12,7 +12,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.0-4.final" />
</ItemGroup>

</Project>
Expand Up @@ -72,6 +72,7 @@ public EmittedAssembly StageFile(ChangedFile file, bool silent = false)
CSharpSyntaxTree.ParseText(
file.Contents,
CSharpParseOptions.Default
.WithLanguageVersion(LanguageVersion.Preview)
.WithKind(SourceCodeKind.Regular)
.WithPreprocessorSymbols(_options.PreprocessorSymbols.ToArray()),
path: file.Path,
Expand Down
2 changes: 1 addition & 1 deletion src/components/tbc.host/tbc.host.csproj
Expand Up @@ -13,7 +13,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.8.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.0.0-4.final" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="ReactiveFileSystemWatcher" Version="0.1.2.1" />
Expand Down

0 comments on commit 2b09211

Please sign in to comment.