Compilation permission order

How does VS 2008 determine where to look for assemblies used to compile applications? There must be some order. Is there something that is used in Tools \ Settings or something else? I am looking for the assembly order in the compilation process.

+3
source share
3 answers

Actually, VS 2008 does not determine the order, but rather a compiler. I know that you did not specify a language, but I will use C # as an example (I am sure that many other languages ​​would also serve as good examples). If you used C #, the compiler first processes csc.rsp (the answer file located next to csc.exe) and then processes the command line parameters / r :. The order of operations determines which assembly is referenced. Therefore, assembly links are first set in csc.rsp, and then command line assemblies are built. It was a compilation time.

Here are the docs for the C # answer file:

http://msdn.microsoft.com/en-us/library/8a1fs1tb(VS.71).aspx

Here's the docs for the C # command line compiler options:

http://msdn.microsoft.com/en-us/library/2fdbz5xd(VS.71).aspx

, . , , , VS. , , Ctrl + W + O.

VS, CLR. , CLR , , GAC, , Load , codeBase, , exe dll . MSDN:

http://msdn.microsoft.com/en-us/library/yx7xezcf.aspx

, , , . SDK.NET Framework , (Fuslogvw.exe) :

http://msdn.microsoft.com/en-us/library/e74a18c4(VS.71).aspx

Fusion - Fusion :

http://www.grimes.demon.co.uk/workshops/fusionWS.htm

, CLR, CLR:

http://blogs.msdn.com/suzcook/default.aspx

, ,

+2

, .

, :

  • GAC, GAC
  • ,
  • ,

- , , , , . .

. .

0
source

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


All Articles