Build problem

This forum is meant for questions and discussions about the X# language and tools
Post Reply
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

Build problem

Post by Juraj »

Hi All,

Today I installed FOX version XS 2.6.1. An application that compiled without problems in XS 2.1 has this problem in version 2.6.1.
After running the "Build app ...", the Adox library will be lost from the working directory, even though it was physically there before. VS 2019 prints an error message (attachment)

Juraj
Attachments
XS26aErrorAdox.png
XS26aErrorAdox.png (159.06 KiB) Viewed 560 times
User avatar
robert
Posts: 4529
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Build problem

Post by robert »

Juraj,

I have difficulties reading the error message.
A question:

Did you add AdoX as COM reference to your app ? In that case the build system should automatically create the Interop.AdoX assembly and you would normally not add a direct reference to Interop.Adox


Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

Build problem

Post by Juraj »

Hi Robert,

this "error mesage" is OK?
Attachments
XS26aErrorAdox1.png
XS26aErrorAdox1.png (80.04 KiB) Viewed 560 times
User avatar
robert
Posts: 4529
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Build problem

Post by robert »

Juraj,
I can read it now.
Can you delete the file that is mentioned in the error message, so MsBuild can try to rebuild it ?
If that does not work, then please zip your project and mail it to me so I can have a look.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
robert
Posts: 4529
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Build problem

Post by robert »

Juraj,
I can see it too. I have no idea why this happens.
As workaround:
- copy the interop.adox dll out of the objdebug folder into the source folder
- remove the ADOX reference from your references list
- add a reference to the interop.adox.dll instead.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

Build problem

Post by Juraj »

Hi Robert,

IF add Interop.Adox from windows "Add reference" from tab "Browse" (not tab COM), build is OK.

Juraj
Attachments
XS26aErrorAdox2.png
XS26aErrorAdox2.png (145.68 KiB) Viewed 560 times
Post Reply