ADAPT / ISOv4Plugin

Eclipse Public License 1.0
18 stars 33 forks source link

ddiExport.txt location problem #196

Open gustavobosch opened 1 year ago

gustavobosch commented 1 year ago

Even when I specify my own static ddiExport.txt location, the Plugin is still trying to load the file from (AppDomain.CurrentDomain.BaseDirectory, "Resources", "ddiExport.txt") as specified in DdiLoader.cs

I set up AgGateway.ADAPT.ISOv4Plugin.Representation.DdiLoader.DDIDataFile = @"C:\Tecgraf\AgEngine\Resources\ddiExport.txt"; right in the start of my application and when I use IPlugin.Export I get and exception:

Could not find part of the path: "F:\Tecgraf\bin\Debug\Resources\ddiExport.txt"

Is there another way to specify the correct location of the ddi file or is this an issue to be fixed?

knelson-farmbeltnorth commented 1 year ago

@gustavobosch A working example I'm aware of is at line 63 here https://github.com/knelson-farmbeltnorth/ShippedItemInstanceConverter/blob/main/Converter.cs. If that doesn't help, you should be able to build the plugin from source and debug into the setter on the DDIDataFile property to validate its behavior.