cBot Import Naming Issue
cBot Import Naming Issue
20 Apr 2021, 17:17
A recent change on version 4.0 has caused a major issue for all of our products that were built using Visual Studio and renamed after, previously it was possible to rename a cTrader cBot in windows explorer and publish it on our website to download and when the user downloads the file and double clicks on it to install it uses the filename as the cBot name.
cTrader IDE
If you build a cBot or indicator using cTrader and send this to another machine that does not have the file installed and when you double click on the file it installs with the correct name.
Visual Studio IDE
There has been a recent change that has affected how Visual Studio builds cBots.
If you have your project name "cBot New" and build the project the file which is built in the robots directory is "cBot New".
If you send this file to another machine that does not have the file installed and double click on the file to install it uses the projects assembly name instead.
in order for it to work correctly, you need to make sure the assembly name and the project name as the same.
Backward Compatibility Break - legacy files
I am sure there are 1000's of cBots and indicators that have been published with the filenames changed after they are built, when users now install these files the names will not look like the intended names. I have been contacted by other vendors about this issue and thought it had been corrected in a recent update.
cTrader Beta
This removes the spaces but uses the assembly name in VS.
cTrader v4.0
This strips out the spaces and uses the assembly name.
If you could let me know if this will be fixed or not as we would need to update all our products and publish which is about 2-weeks work, you would also need to inform all vendors to do the same.
Paul.