Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I know you said you don't want to use post build events, but your reason as to why not intrigued me. It sounds like you might be hard coding the name of the .dll in your post build event. That can easily be avoided.</p> <p><code>xcopy "$(TargetDir)*" "c:\common\" /Y</code></p> <p>The <code>*</code> would just cause <em>everything</em> in your bin/Debug/ folder to get copied to your common folder. You could also just copy dlls if you want. Or, if you use <code>$(TargetPath)</code>, you'll copy just the 1 dll that is the result of the project, and not any other related dependencies.</p> <p><strong>UPDATE</strong></p> <p>The way we do it is each projects entire bin folder is copied to a <em>sub</em>folder. Suppose you have 2 projects, <code>WebUtil</code> and <code>HtmlParser</code>, where WebUtil depends on HtmlParser. For both projects, use <code>xcopy "$(TargetDir)*" "c:\common\$(ProjectName)" /Y</code>. This will create c:\common\WebUtil\ and c:\common\HtmlParser. In WebUtil, add a reference to c:\common\HtmlParser\HtmlParser.dll. There will now be 2 copies of HtmlParser.dll in c:\common.</p> <p>c:\common\HtmlParser\HtmlParser.dll // the most recent build. c:\common\WebUtil\HtmlParser // what <em>was</em> the most recent build when WebUtil was built</p> <p>This has all kinds of advantages. If you change the API of HtmlParser, WebUtil will continue to work, since it will have the older HtmlParser.dll until you try to rebuild WebUtil (at which point you'll get build errors because of the changed API).</p> <p>Now, if a 3rd project got in the mix that depended on WebUtil, and you're using some part of WebUtil that exposes classes in HtmlParser, then you'll need to add a reference to <em>both</em> projects from your new project. When you add a reference to HtmlParser.dll, use the one in c:\common\WebUtil. You do this because you're only including it as a necessary requirement of WebUtil. Now you'll always have the version of HtmlParser.dll that matches your current version of WebUtil.dll.</p> <p>I hope that makes sense. It can definitely be a tricky thing to manage. Just wait till you have to start pulling down all your dependencies using svn:externals =P</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload