Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ public void Execute(VersionVariables variables, AssemblyInfoContext context)
var localProjectFile = projectFile.FullName;

var originalFileContents = this.fileSystem.ReadAllText(localProjectFile);
var fileXml = XElement.Parse(originalFileContents);
XElement fileXml;
try
{
fileXml = XElement.Parse(originalFileContents);
}
catch (XmlException e)
{
throw new XmlException($"Unable to parse file as xml: {localProjectFile}", e);
}

if (!CanUpdateProjectFile(fileXml))
{
Expand Down