开发者

How (and when) do I use TFS with private DLLs that can also be served by NuGet/NuPack?

We have a couple of private "Enterprise Services" DLLS that are used in all our Websites for authentication, logging, etc. Since they are private, we also control the ve开发者_StackOverflow社区rsioning and source of these DLLs. Our historic (error prone) steps after creating File | New Project include

  1. Add the "Enterprise Services" project
  2. Add a reference to above
  3. Edit web.config sections such as Authentication, HttpHandlers, etc...

NuGet will automate the above process

I just came across NuGet (bundled in MVC3) which allows me to download and install VS2010 packages from a privately hosted server, and automate the config settings that previously would have made manually.

Question:

  • Does it make sense to publish my dll into a private NuGet server?
  • Will I lose the ability to debug and step into this dll if I need to?
  • What other things should I consider if the rest of my project is based in TFS?


I agree with marcind: having a private feed make sense.

My 2 cents are that you don't need to configure a private server: configuring your VS to target a shared folder is enough for distributing the packages and it will be easy to update with your TFS builds: just create the NuGet package and drop it into the shared folder.

Keep in mind that, for the latest NuGet bits that I tested, the client (both the console and the gui) does not look into other feeds for locating the dependecies so it will complaint that it can't resolve them automatically: you'll have to install them by hand.


Yes, it makes sense for you to have a private NuGet feed

I'm not sure about stepping into the dll, but if you provide PDBs in your NuGet package as well as the library sources on a share (and then configure VS to know where those sources are) then you should be able to step into the code just like you can today for the .NET framework itself.

NuGet was designed to work well with projects that are mapped to source control so hopefully there's nothing else you need.


@Ghidello NuGet will resolve dependencies automatically as long as you aren't using a specific respository (the package source dropdown in the console is set to All instead of your private repo)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜