gpt4 book ai didi

powershell - 在 Visual Studio 2005 中使用 NuGet

转载 作者:行者123 更新时间:2023-12-02 23:31:35 28 4
gpt4 key购买 nike

使用 NuGet 和 Visual Studio 2005 的最顺畅的工作流程是什么?这是可能吗?我知道该插件仅适用于 Visual Studio 2010,但仍然有包管理器控制台,它似乎只不过是 powershell。我可以在没有 Visual Studio 的情况下运行控制台吗?控制台可以下载包并将其集成到 Visual Studio 2005 项目中吗?如果是这样,这是如何完成的?

最佳答案

Scott Hanselman blogged关于向 Visual Studio 2008 添加 NuGet“支持”。您可能也可以稍微调整一下以在 Visual Studio 2005 中工作,但当然您不会获得与 Visual Studio 2010 相同的体验。

Well, not really. A better title would be "How to Cobble Together NuGet Support for Visual Studio 2008 with External Tools and a Prayer." The point is, there are lots of folks using Visual Studio 2008 who would like NuGet support. I'm exploring this area and there's a half-dozen ways to make it happen, some difficult and some less so. The idea would be to enable some things with minimal effort. It'll be interesting to see if there are folks in the community who think this is important enough to actually make it happen. Of course, the easiest thing is to just use 2010 as it sill supports .NET 2.0, 3.0, 3.5, and 4, but not everyone can upgrade.

Someone could:

  • Backport the existing NuGet Package References dialog to 2008 using that version's native extensions (not VSiX)
  • Create MEF (Managed Extensibility Framework) plugins for the nuget.exe command-line to update the references in a vbproj or csproj
  • Use PowerShell scripts and batch files to get the most basic stuff working (get a package and update references.)
    • Maybe write a shim to get DTE automation working...

But that's coulds and maybes. Let's talk about the MacGyver solution. more »

关于powershell - 在 Visual Studio 2005 中使用 NuGet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7555883/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com