Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[msbuild] Pass a stream to XDocument.Load instead of a path. (#18722)
XDocument.Load(string) takes a URI, not a file path. This usually works if there are no special characters in the file path, but for instance with a path with a colon (say 'a:b/some/file'), we'll get an exception about invalid uri scheme. So instead use the XDocument.Load(Stream) overload, and create the stream using the file path instead, in which case there's no problem with special characters.
- Loading branch information
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.