Forums (RSS 2.0)" href="http://www.simple-talk.com/community/forums/rss.aspx?ForumID=-1&Mode=0" />
Click here to monitor SSC

Partitioning Your Code Base Through .NET Assemblies and Visual Studio Projects

Last post 02-03-2012, 3:12 AM by juanagui. 22 replies.
Page 2 of 2 (23 items)   < Previous 1 2
Sort Posts: Previous Next
  •  02-28-2011, 6:54 AM Post number 100565 in reply to post number 99257

    References by assemblies

    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 Post number 100569 in reply to post number 99257

    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 Post number 100570 in reply to post number 99257

    http://www.NDepend.com

    >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 Post number 100571 in reply to post number 99257

    http://www.NDepend.com

    >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 Post number 100600 in reply to post number 99257

    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 Post number 100809 in reply to post number 99257

    • it3xl.ru is not online. Last active: 04 Apr 2011, 2:37 AM it3xl.ru
    • Not Ranked
    • Joined on 03-15-2011
    • Moscow, Russia
    • Level 1: Deep thought

    Tip for Silverlight.

    It is simple for Silverlight.
    You should use another shared folder for projects under the "Silverlight .Net Framework".
    For example the "..\bin" and any "..\binSilverlight" for Silverlight project and his class libraries.
    Usually Silverlight means other tier (Cllient logic) in same solution with a Web-Server tier (ASP.NET). That is why you must use different shared folders too.
  •  02-03-2012, 2:14 AM Post number 105825 in reply to post number 99257

    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 Post number 105827 in reply to post number 99257

    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)   < Previous 1 2
View as RSS news feed in XML