Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm building a Web Application with VS2013. I need to add reference to .exe file
I go to ->solution explorer->right click->Add->Reference->Browse to folder containing .exe file I would like to ad a reference to. Letterbox at the bottom shows all types of the files by their extensions like this "*.ocx, *.tlb, *.dll, exe" (.exe comes without * sign, which I guess, means something). I cannot pick up my (.exe) file because it doesn't "see" it.
Any ideas?

Thank You in advance, Serge.
Posted
Comments
[no name] 6-Jun-14 13:21pm    
It probably does not see it because it is not a .NET exe. Hard to say for sure without more information.

It does not matter. Referencing assembly with a *.exe main executable module is quite unusual, but this is quite legitimate thing and can be used in some techniques (I wonder, why do you need that?). Anyway, this is not a problem at all. I did not even noticed any problems doing such things. You don't have to follow a predefined naming pattern; file name could be anything. Just type '*' as a file name, and all files will be shown.
—SA
 
Share this answer
 
I would check if you could build the exe as a library and then use it where you need it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900