From ead8e3a4fc1e2776405b6bf951b004983636f414 Mon Sep 17 00:00:00 2001 From: zznty <94796179+zznty@users.noreply.github.com> Date: Fri, 2 Dec 2022 15:23:11 +0700 Subject: [PATCH] update --- Torch.API/Torch.API.csproj | 2 +- Torch.Server.Tests/Torch.Server.Tests.csproj | 2 +- Torch.Server/Torch.Server.csproj | 2 +- Torch.Tests/Torch.Tests.csproj | 2 +- Torch/Managers/ScriptCompilationManager.cs | 2 +- Torch/Torch.csproj | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Torch.API/Torch.API.csproj b/Torch.API/Torch.API.csproj index 30dd9fd..68f0c02 100644 --- a/Torch.API/Torch.API.csproj +++ b/Torch.API/Torch.API.csproj @@ -16,7 +16,7 @@ - + all diff --git a/Torch.Server.Tests/Torch.Server.Tests.csproj b/Torch.Server.Tests/Torch.Server.Tests.csproj index a17cd59..5bdfd55 100644 --- a/Torch.Server.Tests/Torch.Server.Tests.csproj +++ b/Torch.Server.Tests/Torch.Server.Tests.csproj @@ -18,7 +18,7 @@ - + diff --git a/Torch.Server/Torch.Server.csproj b/Torch.Server/Torch.Server.csproj index 9e7f812..015f77a 100644 --- a/Torch.Server/Torch.Server.csproj +++ b/Torch.Server/Torch.Server.csproj @@ -41,7 +41,7 @@ - + all diff --git a/Torch.Tests/Torch.Tests.csproj b/Torch.Tests/Torch.Tests.csproj index 5009d52..5dbcf35 100644 --- a/Torch.Tests/Torch.Tests.csproj +++ b/Torch.Tests/Torch.Tests.csproj @@ -18,7 +18,7 @@ - + diff --git a/Torch/Managers/ScriptCompilationManager.cs b/Torch/Managers/ScriptCompilationManager.cs index e233726..9939a85 100644 --- a/Torch/Managers/ScriptCompilationManager.cs +++ b/Torch/Managers/ScriptCompilationManager.cs @@ -215,7 +215,7 @@ public class ScriptCompilationManager : Manager } private readonly CSharpCompilationOptions _compilationOptions = new(OutputKind.DynamicallyLinkedLibrary); - private readonly CSharpParseOptions _parseOptions = new(LanguageVersion.CSharp10, DocumentationMode.None); + private readonly CSharpParseOptions _parseOptions = new(LanguageVersion.CSharp11, DocumentationMode.None); private CSharpCompilation CreateCompilation(string assemblyFileName, IEnumerable