diff --git a/src/ThisAssembly.AssemblyInfo/AssemblyInfoGenerator.cs b/src/ThisAssembly.AssemblyInfo/AssemblyInfoGenerator.cs index 4b2e495a..8533bac9 100644 --- a/src/ThisAssembly.AssemblyInfo/AssemblyInfoGenerator.cs +++ b/src/ThisAssembly.AssemblyInfo/AssemblyInfoGenerator.cs @@ -71,7 +71,7 @@ static void GenerateSource(SourceProductionContext spc, (ImmutableArray= 11) + if (parse is CSharpParseOptions cs && (int)cs.LanguageVersion >= 1100) model.RawStrings = true; var file = parse.Language.Replace("#", "Sharp") + ".sbntxt"; diff --git a/src/ThisAssembly.Constants/ConstantsGenerator.cs b/src/ThisAssembly.Constants/ConstantsGenerator.cs index b3a17956..c09da1c6 100644 --- a/src/ThisAssembly.Constants/ConstantsGenerator.cs +++ b/src/ThisAssembly.Constants/ConstantsGenerator.cs @@ -47,7 +47,7 @@ void GenerateConstant(SourceProductionContext spc, ((string name, string value, var file = parse.Language.Replace("#", "Sharp") + ".sbntxt"; var template = Template.Parse(EmbeddedResource.GetContent(file), file); var model = new Model(rootArea); - if (parse is CSharpParseOptions cs && (int)cs.LanguageVersion >= 11) + if (parse is CSharpParseOptions cs && (int)cs.LanguageVersion >= 1100) model.RawStrings = true; var output = template.Render(model, member => member.Name); diff --git a/src/ThisAssembly.Metadata/MetadataGenerator.cs b/src/ThisAssembly.Metadata/MetadataGenerator.cs index 6c9a8755..98b6612b 100644 --- a/src/ThisAssembly.Metadata/MetadataGenerator.cs +++ b/src/ThisAssembly.Metadata/MetadataGenerator.cs @@ -61,7 +61,7 @@ void GenerateSource(SourceProductionContext spc, (ImmutableArray= 11) + if (parse is CSharpParseOptions cs && (int)cs.LanguageVersion >= 1100) model.RawStrings = true; var file = parse.Language.Replace("#", "Sharp") + ".sbntxt"; diff --git a/src/ThisAssembly.Project/ProjectPropertyGenerator.cs b/src/ThisAssembly.Project/ProjectPropertyGenerator.cs index 5a0500cf..85d16d64 100644 --- a/src/ThisAssembly.Project/ProjectPropertyGenerator.cs +++ b/src/ThisAssembly.Project/ProjectPropertyGenerator.cs @@ -40,7 +40,7 @@ void GenerateSource(SourceProductionContext spc, (ImmutableArray= 11) + if (parse is CSharpParseOptions cs && (int)cs.LanguageVersion >= 1100) model.RawStrings = true; var file = parse.Language.Replace("#", "Sharp") + ".sbntxt";