In my ntier solution i wanted to add dal to bll without using add reference present under bll folder
by programmatically can we add it to bll or not ??? pls help me
In my ntier solution i wanted to add dal to bll without using add reference present under bll folder
by programmatically can we add it to bll or not ??? pls help me
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 31, 2023, 6:29 AM EDT
Hello Jaya,
You can load your dll using below code,
// Load the DLL at runtime Assembly assembly = Assembly.LoadFrom("path/to/your/dll"); // Add the assembly reference to the current AppDomain AppDomain.CurrentDomain.Load(assembly.GetName());But one question is: why do you want to load without reference?
One more way you can do it You can create a package that you can use in your project.
Jaya PrakashRank #1,293 · 1.3K reputationPosted Mar 31, 2023, 7:01 AM EDT
Dear @Jignesh sir
i've been told by T.L i need to remove the dal ref from bll and i need to solve that error created in bll
Error assembly ref not found
i should solve without adding project ref
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 31, 2023, 8:43 AM EDT
Please refer this one. IT may help you out,
https://www.c-sharpcorner.com/article/project-reference-vs-dll-reference-in-visual-studio/