Skip to content

Commit df6bd2f

Browse files
committed
Make XNamespace visible that it's required
1 parent 7eb62a0 commit df6bd2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnturnedRedistUpdateTool/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static async Task<int> Main(string[] args)
8181
Console.WriteLine($"Found Unturned v{version} ({buildId})");
8282

8383
var doc = XDocument.Load(nuspecFilePath, LoadOptions.PreserveWhitespace);
84-
XNamespace ns = "http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd";
84+
var ns = XNamespace.Get("http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd");
8585
var versionElement = doc.Root.Element(ns + "metadata").Element(ns + "version");
8686
if (versionElement == null)
8787
{

0 commit comments

Comments
 (0)