How to set build action to None in Xide

More
6 days 53 minutes ago #1 by Intexso
Hello,

I am doing some testing for understanding the proces of porting VO applications to Xsharp. Now I am studying example 1 (The VO Explorer).

In the documentation the following is written (when solving the error message caused by the missing Cato3spl.dll):

This DLL is located in the Redist folder of your VO installation. Simply copy the “Cato3spl.dll” file from your VO Redist folder to the output folder as well as the MSVCRT.DLL and try again.
You can also add the DLLs to your project (Add Existing Item, and point to the DLLs in the Redist folder). This will copy them to the project folder. Then set the build action for the 2 DLLs to None and the “Copy to Output Directory” property to “Preserve Newest”. When you now build your app the DLL will be copied to the right folder.


I am using Xide. I have added Cato3spl.dll to the <references> section. But I don't see the option to set a build action or 'copy to outpu directory'. Trying to run causes now a 'Metadatafile '...' could not be opened - error.

Where can I find this options (or what am I doing wrong)?

Thanks in advance
Eric Boomsma

Please Log in or Create an account to join the conversation.

More
5 days 20 hours ago #2 by Chris
Replied by Chris on topic How to set build action to None in Xide
Hi Eric,

Those instructions are meant for VS, not for XIDE. For XIDE, just copy the files from your VO folder to the output folder of your app (by default in \Bin\Debug and \Release, where the .exe of your app is also generated) and it will be fine.

Chris

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

More
5 days 19 hours ago #3 by Intexso
Replied by Intexso on topic How to set build action to None in Xide
Hi Chris,

Thanks. Okay.

I made a project in XIDE (SIKOS). In this project I try to add my converted (by VOXPorter) AEF as an application.

My first Application is Tools4VO (a library which contains several functions). Then I added another library (formal AEF) as Application. This uses functions of Tools4VO, so I added Tools4VO at the References section.
There is a DLL Tools4VO which I put in the \Bin\Debug map.

Now I get the following error: error XS0009: Metadata file 'C:\XIDE\Projects\SIKOS\Bin\Debug\Tools4VO.dll' could not be opened -- PE image doesn't contain managed metadata.

What am I doing wrong?

Eric

Please Log in or Create an account to join the conversation.

More
5 days 16 hours ago #4 by Chris
Replied by Chris on topic How to set build action to None in Xide
Hi Eric,

So Tools4VO is your own library, written in VO, right? You need to first port this library in X# (same way, using VOXporter), compile it and then add a reference in your main app (SIKOS) to this new dll file, generated by X#. Of course if you need help while porting the library, please let us know!

Chris

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

More
5 days 15 hours ago #5 by Intexso
Replied by Intexso on topic How to set build action to None in Xide
Hi,
I see my problem. There were some errors in the library Tools4VO. In this library the function PClone() and Memory() were used and they are not in X#. I removed this code and the library compiled without errors.

After that, the XS0009 error was gone.

Thanks. I am going on with testing my conversion to X#...

Eric

Please Log in or Create an account to join the conversation.

More
5 days 13 hours ago #6 by Chris
Replied by Chris on topic How to set build action to None in Xide
Great to hear success stories! :)

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.