Share via

2 Asp.Net Projects

Roque, Rudy 21 Reputation points
2021-12-14T19:35:05.463+00:00

I have forgotten how to call the second project using asp.net and c#

I have two projects. I need to know how I can call the second project.

Can anyone help?

Developer technologies | ASP.NET Core | Other
0 comments No comments

Answer accepted by question author

AgaveJoe 31,361 Reputation points
2021-12-14T21:45:43.873+00:00

If you are using Visual Studio then create a project reference to the library project or copy the library project's dll file to main project's bin folder.

Manage references in a project

In the main project add a "using" statement to the top of a code file that contains the namespace of the library code you wish to call.

using (C# Reference)

Finally call the code.

If these are two ASP.NET projects then you have a design bug and need to move the shared code into a library project.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.