开发者

Reference to Library Binary - Debug or Release version?

开发者 https://www.devze.com 2022-12-21 23:43 出处:网络
I asked a q开发者_开发百科uestion earlier today (Methods of Managing Source Code) as I\'ve been unhappy with the way I manage my shared libraries\' source code. As a result of the answers posted, I ha

I asked a q开发者_开发百科uestion earlier today (Methods of Managing Source Code) as I've been unhappy with the way I manage my shared libraries' source code. As a result of the answers posted, I have found a better method.

I'm now working through my repository tidying up all my source code, however as a result I now have another question...

Whilst I'm still developing a piece of software, is it better to reference the debug build of the library (at this risk of forgetting to replace this with the release build at a later date)?

Or in other words, if I reference the release build of the library, will it restrict debugging if the debug build of my software crashes?


It depends a lot on how tight your project and library are connected during development but you should in general

  • develop and test the library
  • create a release build
  • use that Release build in other projects
  • when needed, temporarily use a Debug build to find and solve integration problems.

But when the Projects are tightly interwoven, that 'temporarily' can span most of the development cycle.

And there is no cure for 'forgetting' to switch, you should always check and double-check. But that should not drive your decision here.


Also check out this article if you want a way to link to both. It shows up twice in your references folder but other than that minor aesthetic quality it works great.

How to include the right reference in C# using the "Browser" tab


Any reason not to use project references as opposed to dll references?

0

精彩评论

暂无评论...
验证码 换一张
取 消