Link to home
Start Free TrialLog in
Avatar of RIAS
RIASFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Get sourcecode path

Hello,
Is it possible to get the sourcecode path from bin folder?
I am using visual studio 2015 ,vb.net desktop app

Cheers
Avatar of Darren
Darren
Flag of Ireland image

Does var localDir = Assembly.GetExecutingAssembly().GetDirectoryPath(); give you what you need?
Avatar of RIAS

ASKER

Darren,
Thanks ! The problem is I have a bin folder of the live project, but can't figure out where the source code is.
Can you suggest?
What tool are you using to build the program.

Are you 100% positive the source code is on the machine? You could have a bin if the solution was simply installed to the bin folder

Not sure if there is a way to do this but sounds unlikely.... as the bin folder should contain the compiled code and should not care about the source.

have you searched for *.vb files
Avatar of RIAS

ASKER

The bin folder is on another server. Trying to search the projects correct version.
Was wondering if debug folder can help
Perhaps if you have the .pdb files you could have a look here...

http://www.wintellect.com/devcenter/jrobbins/pdb-files-what-every-developer-must-know

Thanks

Darren
Avatar of RIAS

ASKER

In bin folder only 3 files are present:

.exe
.configuration and application.

Cheers
My point was that you said 'Was wondering if debug folder can help ' Do you have the debug folder?

If so then you might be able to get the information you require.

Otherwise I would say that it is not possible.
Sure leave the question open for a while and see if anyone else has any suggestions.... :)
Avatar of RIAS

ASKER

Ok , thanks for the efforts.
the files in the bin folder will not be able to stool where the original source code is from. The bin folder is the result.
You could perhaps search the server for the name of the project (which often is the name of the .exe file).
ASKER CERTIFIED SOLUTION
Avatar of Ark
Ark
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RIAS

ASKER

Cheers!
Not sure I understand the awarding of the points. If you don't have access to the pdb files then it's of no help at all.

Just interested!