Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ThisAssembly.AssemblyInfo/AssemblyInfoGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static void GenerateSource(SourceProductionContext spc, (ImmutableArray<KeyValue
var (attributes, parse) = arg;

var model = new Model(attributes.ToList());
if (parse is CSharpParseOptions cs && (int)cs.LanguageVersion >= 11)
if (parse is CSharpParseOptions cs && (int)cs.LanguageVersion >= 1100)
model.RawStrings = true;

var file = parse.Language.Replace("#", "Sharp") + ".sbntxt";
Expand Down
2 changes: 1 addition & 1 deletion src/ThisAssembly.Constants/ConstantsGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/ThisAssembly.Metadata/MetadataGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void GenerateSource(SourceProductionContext spc, (ImmutableArray<KeyValuePair<st
var (attributes, parse) = arg;

var model = new Model(attributes.ToList());
if (parse is CSharpParseOptions cs && (int)cs.LanguageVersion >= 11)
if (parse is CSharpParseOptions cs && (int)cs.LanguageVersion >= 1100)
model.RawStrings = true;

var file = parse.Language.Replace("#", "Sharp") + ".sbntxt";
Expand Down
2 changes: 1 addition & 1 deletion src/ThisAssembly.Project/ProjectPropertyGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void GenerateSource(SourceProductionContext spc, (ImmutableArray<KeyValuePair<st
var (properties, parse) = arg;

var model = new Model(properties);
if (parse is CSharpParseOptions cs && (int)cs.LanguageVersion >= 11)
if (parse is CSharpParseOptions cs && (int)cs.LanguageVersion >= 1100)
model.RawStrings = true;

var file = parse.Language.Replace("#", "Sharp") + ".sbntxt";
Expand Down