Skip to content

Commit

Permalink
Try fully qualifying namespaces for syndication objects
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWold committed Oct 29, 2023
1 parent 4fe36c5 commit d20043a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.csx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#r "nuget: Metalsharp, 0.9.0-rc.5"
#r "nuget: Metalsharp.LiquidTemplates, 0.9.0-rc-3"
#r "nuget: Metalsharp.SimpleBlog, 0.9.0-rc.2"
#r "nuget: System.ServiceModel.Syndication 6.0.0"
#r "nuget: System.ServiceModel.Syndication 7.0.0"

using Metalsharp;
using Metalsharp.LiquidTemplates;
Expand Down Expand Up @@ -53,11 +53,11 @@ new MetalsharpProject()
.UseLeveller()
.Use(project =>
{
var rssItems = new List<SyndicationItem>();
var rssItems = new List<System.ServiceModel.Syndication.SyndicationItem>();

foreach (var post in project.OutputFiles.Where(f => f.Directory.StartsWith(@".\Posts") && f.Metadata.TryGetValue("contents", out object isContentsObject) && isContentsObject is bool isContents && isContents))
{
rssItems.Add(new SyndicationItem(
rssItems.Add(new System.ServiceModel.Syndication.SyndicationItem(
post.Metadata["title"].ToString(),
post.Text,
new Uri($"https://ian.wold.guru/Posts/{post.Name}.html"),
Expand Down Expand Up @@ -131,7 +131,7 @@ new MetalsharpProject()
}

var rssFeedContent = string.Empty;
var rssFeed = new SyndicationFeed(
var rssFeed = new System.ServiceModel.Syndication.SyndicationFeed(
"Ian Wold",
"Ian Wold's Blog",
new Uri("https://ian.wold.guru/feed.xml"),
Expand Down

0 comments on commit d20043a

Please sign in to comment.