vb.netgeckofxwindowsformshost

How to handle downloading in GeckoFX 60


I have Jason Shuler's solution (https://stackoverflow.com/a/38058475/10707700) running on GeckoFX 45.0.34, now I want to update my application to GeckoFX version 60.0.22, but the line:

nsILocalFile objTarget = Xpcom.CreateInstance<nsILocalFile>("@mozilla.org/file/local;1");

fails, because the Gecko.nsILocalFile object does not exist, How do I update the previous line to work in GeckoFX version 60.0.22?


Solution

  • use nsIFile instead of nsILocalFile

    for more information see this geckofx issue