Windows App Studio and HtmlAgilityPack issues


Here are 2 issues you might encounter while trying to publish apps that you created based on App Studio source code:


Issue

Error on certification report: The binary HtmlAgilityPack.dll is built in debug mode”

The problem is that (currently) App Studio is using HTMLAgilityPack version 1.4.8 which was built in debug mode (by mistake).


Fix

You can resolve this error by updating HTMLAgilityPack to version 1.4.9 via NuGet.

---

Issue

Error when you compile the same solution in Visual Studio:

“Payload contains two or more files with the same destination path 'HtmlAgilityPack.pdb'. Source files:
C:\Users\LDEX\YourApp\packages\HtmlAgilityPack.1.4.9\lib\NetCore45\HtmlAgilityPack.pdb
C:\Users\LDEX\YourApp\packages\HtmlAgilityPack.1.4.9\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid+MonoTouch\HtmlAgilityPack.pdb”


Fix

To resolve the issue, just change the “Copy Local” property of the HTMLAgilityPack reference to False in the Windows project.

No Comments