locked
How to link a module from another project RRS feed

  • Question

  • User-329769696 posted

    Hello everyone! I just registered in this forum, so this is my first post. I have read a lot of documentation but I can not find what I am looking for. I would like to know how to link a code file that is in a certain project, but from a new project, in order to reuse code and not have duplicate copies everywhere, helping me to facilitate the future maintenance of a large project. I am using Visual Studio 2013 with Windows 7 Pro 64 bit. I have the original project and the target project. I have been able to import (link) a code file, which is a module, but when I import it to the new project, it does not allow me to use it, I can only edit it, but it can not be called or use its functions or public procedures, so it is not Useful. Thank you in advance for your help. I hope the information provided is the necessary one, otherwise please, let me know. Thank you very much. Greetings to all!

    Friday, June 2, 2017 6:16 PM

All replies

  • User-1838255255 posted

    Hi lvenegas,

    According to your description, I search some explanation of it, I think it is explain is correct, please check:

    VB.NET: How to reference VB.NET module?

    https://stackoverflow.com/questions/436605/vb-net-how-to-reference-vb-net-module

    How to make all the module functions "Visible" in another project?

    https://forums.asp.net/t/1927745.aspx?How+to+make+all+the+module+functions+Visible+in+another+project+

    I think you want to call some function in this module, I think WebService or Web API and Webmethod could meet your needs.

    lvenegas

    when I import it to the new project, it does not allow me to use it, I can only edit it, but it can not be called or use its functions or public procedures, so it is not Useful.

    About the description of this phenomenon, you could call the function in this module,  but you say it does not allow you to use, so I am not clear what do you do, or what happened? I hope you could give us a more detailed description, this will better help you!

    Best regards,

    Eric Du

    Monday, June 5, 2017 10:25 AM