优先考虑VS2015 NuGet包装而不是还原 [英] Prioritize VS2015 NuGet packaging not restoration

查看:65
本文介绍了优先考虑VS2015 NuGet包装而不是还原的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所暗示的那样,我严重质疑为什么要将恢复而不是包装定为自动化.从某种意义上说,恢复已经可以解决.是否应该通过约定还是配置是一个问题 另一个话题.

但是,我认为,真正的挑战是打包,包括针对正确的框架和平台的正确的程序集和程序包引用,现在随着跨平台的.NET框架的推广,包装比以往任何时候都更加重要.

话虽这么说,所以现在有了VS2015 +,我们可以期待自动的软件包还原.很好,一切都很好.

但是包装呢?那里的路是什么?例如,在哪里可以找到NuGet.exe?还是捆绑"?现在也可以使用MSBuild?

任何内在的建议,将不胜感激.我已经找到了诸如NuBuild之类的第三方工具,但是如果有一种内置的打包方式,那就更好了.

谢谢...


As the title suggests, I seriously question why RESTORATION and not PACKAGING would be slated for automation. Restoration already had a solution in the sense that it could be enabled. Whether that should be by convention or configuration is a matter for another topic.

However, in my view, the real challenge is PACKAGING, including the correct assembly and package references, targeting the correct frameworks and platforms, now so more than ever with the promotion of the .NET framework across platforms.

This being said, so now with VS2015+ we can expect automated package restoration. Fine, all well and good.

But what about packaging? What is the path forward there? Where do we find NuGet.exe, for instance? Or is that "bundled" with MSBuild, now, as well?

Any inside, advice, would be appreciated. I've found third-party tools such as NuBuild, but if there is a readily built-in way of packaging, that would be better.

Thank you...


推荐答案

我的朋友

>>但是包装呢?

>>But what about packaging?

VS2015和VS2017RC不支持自动打包.您可以将您的想法提交给用户之声,并在此处共享一个链接,Microsoft的工程师将认真评估您的想法.并且请记住将您的回复标记为答案,这可能会帮助其他人 投票并发表评论.

VS2015 and VS2017RC not support automatic packing. You could submit your idea to the User Voice, and share a link here, engineers from Microsoft will evaluate your idea seriously. And please remember to mark your reply as answer which could help others to vote and comment it.

http://visualstudio.uservoice.com/forums/121579-visual-studio

>>例如,我们在哪里找到NuGet.exe?

>> Where do we find NuGet.exe for instance?

请从以下链接下载它:

https://docs.nuget.org/ndocs/guides/install-nuget

和命令行选项,请参考以下链接:

and Command line options please refer to the following link:

https://docs.nuget.org/ndocs/tools/nuget.exe-cli -参考

>>还是捆绑"现在也可以使用MSBuild?

>>Or is that "bundled" with MSBuild, now, as well?

如果您想与MSBuild捆绑在一起,请参考以下类似主题:

If you want to bundled with MSBuild, please refer to the following similar thread:

http://stackoverflow.com/questions/9180904 /automating-creating-nuget-package-as-part-of-build-process

此外,我帮助您找到了另一个软件包,该软件包可以在每次构建时自动从您的项目中创建一个NuGet软件包.您可以参考它.

In addition, I help you found an another package, that could automatically create a NuGet package from your project each time it builds. You could refer to it.

https://www.nuget.org/packages/CreateNewNuGetPackageFromProjectAfterEachBuild/

我已答复您询问的以下情况,如果我的答复有助于您解决疑虑,请 标记作为答案,这可能对其他人有帮助,如果没有帮助,请随时告诉我.非常感谢.

I have replied the following case you asked, if my reply help you resolved the doubts, please mark it as answer, which could helpful for others, if not, please feel free to let me know. Thank you very much.

此致

奥斯卡


这篇关于优先考虑VS2015 NuGet包装而不是还原的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆