You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the XML encoding is set to Windows-1252, the program will crash with the following traceback:
System.Xml.XmlException:System does not support 'Windows-1252' encoding. Line 1, position 31.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args, Exception innerException)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg, Exception innerException)
at System.Xml.XmlTextReaderImpl.CheckEncoding(String newEncodingName)
at System.Xml.XmlTextReaderImpl.ParseXmlDeclaration(Boolean isTextDecl)
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at DependenSee.ReferenceDiscoveryService.DiscoverFileReferences(String path) in D:\a\1\s\DependenSee\ReferenceDiscoveryService.cs:line 142
at DependenSee.ReferenceDiscoveryService.Discover(String folder, DiscoveryResult result) in D:\a\1\s\DependenSee\ReferenceDiscoveryService.cs:line 88
at DependenSee.ReferenceDiscoveryService.Discover() in D:\a\1\s\DependenSee\ReferenceDiscoveryService.cs:line 44
at DependenSee.PowerArgsProgram.Main() in D:\a\1\s\DependenSee\PowerArgsProgram.cs:line 102
--- End of stack trace from previous location ---
at PowerArgs.ObjectEx.InvokeMainMethod(Object o)
at PowerArgs.Args.<>c__DisplayClass15_1.<InvokeMain>b__1()
at PowerArgs.Args.Execute[T](Func`1 argsProcessingCode)
at PowerArgs.Args.<>c__DisplayClass15_0.<InvokeMain>b__0(String[] a)
at PowerArgs.REPL.DriveREPL[T](TabCompletion t, Func`2 eval, String[] args, Func`1 defaultEval)
at PowerArgs.Args.InvokeMain(CommandLineArgumentsDefinition definition, String[] args)
at PowerArgs.Args.InvokeMain[T](String[] args)
at DependenSee.Program.Main(String[] args) in D:\a\1\s\DependenSee\Program.cs:line 15
-----Inner Exception----
System.ArgumentException:'Windows-1252' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. (Parameter 'name')
at System.Text.EncodingTable.InternalGetCodePageFromName(String name)
at System.Text.EncodingTable.GetCodePageFromName(String name)
at System.Text.Encoding.GetEncoding(String name)
at System.Xml.XmlTextReaderImpl.CheckEncoding(String newEncodingName)
To Reproduce
In a .csproj:
<?xml version="1.0" encoding="Windows-1252"?>
(rest does not matter).
Run Dependensee <path>
Example VS Solution
N/A
DependenSee Command Dependensee <path>
DependenSee Output
N/A
DependenSee Version
Package Id Version Commands
dependensee 2.2.0 DependenSee
The text was updated successfully, but these errors were encountered:
Describe the bug
If the XML encoding is set to Windows-1252, the program will crash with the following traceback:
To Reproduce
In a
.csproj
:(rest does not matter).
Run
Dependensee <path>
Example VS Solution
N/A
DependenSee Command
Dependensee <path>
DependenSee Output
N/A
DependenSee Version
Package Id Version Commands
dependensee 2.2.0 DependenSee
The text was updated successfully, but these errors were encountered: