Skip to content

Commit

Permalink
fix: modify name of interfering csproj attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
sinnwrig committed Oct 8, 2024
1 parent df8cd03 commit 245caa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Prowl.Editor/Project/ProjectCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private static void Override(XElement node, XElement newNode)
private static XElement FindOrCreate(XElement parent, XElement node)
{
XElement? match = parent.Elements(node.Name)
.First(x => node.Attributes().All(y => x.Attribute(y.Name)?.Value == y.Value));
.FirstOrDefault(x => node.Attributes().All(y => x.Attribute(y.Name)?.Value == y.Value));

if (match == null)
{
Expand Down Expand Up @@ -155,7 +155,7 @@ public static void GenerateCSProject(

XElement propertyGroupXML = FindOrCreate(projectXML,
new XElement("PropertyGroup",
new XAttribute("ID", "Compile")
new XAttribute("Label", "Compile")
)
);

Expand All @@ -172,7 +172,7 @@ public static void GenerateCSProject(

XElement scriptsXML = FindOrCreate(projectXML,
new XElement("ItemGroup",
new XAttribute("ID", "Compile")
new XAttribute("Label", "Compile")
)
);

Expand All @@ -186,7 +186,7 @@ public static void GenerateCSProject(

XElement referencesXML = FindOrCreate(projectXML,
new XElement("ItemGroup",
new XAttribute("ID", "References")
new XAttribute("Label", "References")
)
);

Expand Down

0 comments on commit 245caa6

Please sign in to comment.