Reference files being put in /bin/debug so not copied to SVN

Ask general questions here.
JimLin
Posts: 38
Joined: Mon Jun 02, 2014 4:23 pm

Reference files being put in /bin/debug so not copied to SVN

Post by JimLin » Wed Mar 14, 2018 12:05 pm

Hi,

We are using SVN as our source code repository. When I first put the code into the repository, I followed this forum post, which details which folders can be excluded: https://www.ranorex.com/forum/svn-t10895.html. I didn't exclude all of the suggestions, but it suggests that the /bin and/obj folders can be excluded, because they are user generated files, which is what I did. As other people are now involved in the project, they are downloading the source code and we have discovered that any added references .dll's and .exe's are missing because Ranorex has put them in the /bin/debug folder, which is excluded. Is the /bin/debug folder the correct folder for Ranorex to put these files and how would you change it to another folder?

Cheers James
Attachments
DLL references in wrong folder.png
DLL references in wrong folder.png (70.95 KiB) Viewed 215 times

McTurtle
Posts: 191
Joined: Thu Feb 23, 2017 10:37 am
Location: Benedikt, Slovenia

Re: Reference files being put in /bin/debug so not copied to SVN

Post by McTurtle » Fri Mar 16, 2018 10:46 am

Hello Jim,

This is normal. I think that every IDE expects that the exe files and dlls are located on every machine in the same location (or commonly in the GAC) and therefore the executable will always find them.

If this is not the case, then you need to incorporate the exe files and the dlls into your project before referencing them. In Ranorex you can simply add them as "Existing items":
AddExistingItem.png
AddExistingItem.png (10.28 KiB) Viewed 193 times
After this, you should reference them not via the GAC but via the .NET Assembly Browser. You should then be able to set the namespace.

Does this help?

Regards,
McTurtle

JimLin
Posts: 38
Joined: Mon Jun 02, 2014 4:23 pm

Re: Reference files being put in /bin/debug so not copied to SVN

Post by JimLin » Mon Mar 19, 2018 9:08 am

Hi,

Thanks for your reply. I will investigate your suggestions later.

Cheers,
James