How to Access the class in one solutionExplorer into another class in another solutionExplorer
Loading
How to Access the class in one solutionExplorer into another class in another solutionExplorer
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jayraj ChhayaPosted Dec 12, 2023, 11:19 AM
Once the class is accessible in the new solution explorer, you can use it just like any other class in your code. Make sure to include the appropriate namespace and reference the class accordingly.
It's important to note that accessing classes between different solution explorers may introduce dependencies and can lead to a tightly coupled codebase. Consider using a shared library or module to encapsulate common functionality and promote code reusability.
Nagaveni KatariPosted Dec 12, 2023, 12:02 PM
solution explorer -namespace-classes-methods here i want to call the methods in that solution into my solutionExplorer-mynamespace-myclass-inmethod how to call .
Vishal JoshiPosted Dec 12, 2023, 11:48 AM
Hello
You can create a Library project and using the project reference add it as a reference project in all expected projects.
Note: Solution Explorer is just like a bunch of projects. Ideally, you can add references to Web, Console, and API projects. But it is good practice to create a library project to separate out the code and reduce circular reference issues.
Thanks
Vishal