将 NuGet 与 Visual Studio 2005 结合使用

发布于 2024-12-06 10:19:39 字数 203 浏览 1 评论 0原文

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

What would be the most frictionless workflow for working with NuGet and Visual Studio 2005? Is this at all possible? I understand that the plugin is only available for Visual Studio 2010, but there is still the package manager console wich seems to be nothing more than powershell. Can I run the console without Visual Studio and can the console download and integrate packages into visual studio 2005 projects? If so, how is this done?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷了相思 2024-12-13 10:19:39

Scott Hanselman 在博客中介绍了如何向 Visual Studio 2008 添加 NuGet“支持”。您或许可以调整此内容也可以在 Visual Studio 2005 中工作,尽管您当然不会获得与 Visual Studio 2010 相同的体验。

嗯,不是真的。更好的标题是“如何拼凑在一起”
NuGet 对 Visual Studio 2008 的支持,带有外部工具和
祈祷。”重点是,有很多人使用 Visual Studio
2008 年谁想要 NuGet 支持。我正在探索这个地区,那里有
有六种方法可以实现这一目标,有些很困难,有些则不那么困难。
这个想法是用最少的努力来实现一些事情。将会是
看看社区中是否有人这么认为很有趣
足够重要,足以真正实现它。当然,最简单的
问题是只使用 2010,因为它仍然支持 .NET 2.0、3.0、3.5 和
4、但并不是所有人都能升级。

有人可以:

  • 使用以下命令将现有的 NuGet 包引用对话框向后移植到 2008 年:
    该版本的本机扩展(不是 VSiX)
  • 创建 MEF(托管
    可扩展性框架)用于 nuget.exe 命令行的插件
    更新 vbproj 或 csproj 中的引用
  • 使用 PowerShell 脚本并
    批处理文件来让最基本的东西工作(获取一个包并
    更新参考文献。)

    • 也许编写一个垫片来实现 DTE 自动化
      工作...

但这只是可能。我们来谈谈麦盖龙
解决方案。 更多 »

Scott Hanselman blogged about adding NuGet "support" to Visual Studio 2008. You can probably adapt this slightly to work in Visual Studio 2005 too, though of course you won't get the same experience as in 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 »

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文