Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddiExport.txt location problem #196

Open
gustavobosch opened this issue Oct 14, 2022 · 1 comment
Open

ddiExport.txt location problem #196

gustavobosch opened this issue Oct 14, 2022 · 1 comment

Comments

@gustavobosch
Copy link

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
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants