RevitTestFramework
RevitTestFramework copied to clipboard
RevitTestFramework Fails to Run If an Addin is encoded in UTF-16
RevitTestFramework fails to Run If an Addin manifest is encoded in UTF-16. When run from the console using RevitTestFrameworkConsole.exe, the error message is "There is no Unicode byte order mark. Cannot switch to Unicode." There is no error message shown in the GUI.
This can be replicated by using the Autodesk.Revit2RobotConnector.Application.addin (text written below):
<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<RevitAddIns>
<AddIn Type="Application">
<Assembly>c:\Program Files\Common Files\Autodesk Shared\Extensions 2017\Modules\RSA\Revit2RobotConnector\Revit2RobotConnector.dll</Assembly>
<Text>Revit2RobotConnector UI Application</Text>
<ClientId>D9AC7590-0F0C-4D41-8915-EDA2EDED1B44</ClientId>
<Name>Revit2RobotConnector</Name>
<FullClassName>Autodesk.Revit.UI.Revit2RobotConnector.Revit2RobotConnectorApplication</FullClassName>
<VendorId>ADSK</VendorId>
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
</AddIn>
</RevitAddIns>
I'll be submitting a pull request shortly with a proposed fix based on this StackOverflow post:
http://stackoverflow.com/questions/4568811/loading-xml-with-encoding-utf-16-using-xdocument