.NET is not looking in PATH for my C # DLL

I have C # dll say dll1, which is referenced by another C # dll say dll2. The path to dll1 is specified in the env PATH variable. when I try to compile dll2, dll2 reports an error that it could not find the dll1 assembly. I am not sure how to do this. I thought PATH was used in finding Dll on .Net.

Waiting for useful advice.

Thanks Karandip Malik

+3
source share
2 answers

PATH is not executed. This msdn article explains how the runtime finds assemblies.

+7
source

In short: no .Net framework does not use the PATH environment variable to search for assemblies.

In more detail: the search rules in the .NET assembly are secret, to say the least - you better read the Microsoft documentation.

Here's the link: http://msdn.microsoft.com/en-us/library/yx7xezcf.aspx

+1
source

Source: https://habr.com/ru/post/921850/


All Articles