|
|
Partitioning Your Code Base Through .NET Assemblies and Visual Studio Projects
Last post 02-03-2012, 3:12 AM by juanagui. 22 replies.
-
02-28-2011, 6:54 AM |
|
|
Hi Patrick, I'm not sure I understand the "reference by assembly" issue. Do you mean that I should add a reference to an assembly by browsing to its output location (using 'Add Reference'-->'Browse' dialog)? if so, how do you distinguish between release/debug modes?
Thanks!
|
|
-
02-28-2011, 8:30 AM |
-
DoingWhatEyeDo
-
-
-
Joined on 11-30-2010
-
-
-
-
|
Another issue - Obfuscation
Another issue with multiple assemblies to add under the list in section "Why create another .NET assembly?" is obfuscation. The more assemblies you have the more effort you have to put into obfuscation development and testing.
|
|
-
02-28-2011, 9:32 AM |
|
|
>I'm not sure I understand the "reference by assembly" issue. Do you mean that I should add a reference to an assembly by browsing to its output location (using 'Add Reference'-->'Browse' dialog)?
Yes, you need to browse the Debug version of the assembly, that typically contains the public API of the Release version of the assembly.
>if so, how do you distinguish between release/debug modes?
There is no need to distinguish. A Release assembly is compiled by referencing the Debug assemblies already compiled. This doesn't provoke any problem since the Debug version of an assembly referenced contains the public API of the Release version of the assembly .
|
|
-
02-28-2011, 9:35 AM |
|
|
>The more assemblies you have the more effort you have to put into obfuscation development and testing.
100% agree. Whatever the obfuscation technology used, it is a sensitive process to set up the obfuscation process right. And the more assemblies are obfuscated, the more error prone is this process.
|
|
-
03-01-2011, 6:16 PM |
|
|
CopyLocal=false AND Output Path?
In my experience, once you've configured the output path to be a common folder it's not necessary to also set CopyLocal=false. VS is intelligent enough to see that the referenced project assembly has already been placed in the output path and so doesn't copy it again.
Am I wrong?
|
|
-
03-15-2011, 10:56 AM |
-
02-03-2012, 2:14 AM |
-
juanagui
-
-
-
Joined on 02-03-2012
-
-
-
-
|
Project reference + copy local false
I'm using project references w/ copy local false, hence getting the build order for free plus no copies. Imho, this is the best combination, any reasons why you recommend using assembly references? Thanks, Juan
|
|
-
02-03-2012, 3:12 AM |
-
juanagui
-
-
-
Joined on 02-03-2012
-
-
-
-
|
Project reference + copy local false
I'm using project references w/ copy local false, hence getting the build order for free plus no copies. Imho, this is the best combination, any reasons why you recommend using assembly references? Thanks, Juan
|
|
Page 2 of 2 (23 items)
2
|
|