简体   繁体   English

Nuget VS Web部署

[英]Nuget VS Web Deploy

We are currently using web deploy for creating packages for our .net web applications. 我们目前正在使用Web部署为.net Web应用程序创建包。 It got some pros and cons. 它有一些优点和缺点。 Now we are going to use nuget for dependency management but given the ease of packaging in nuget .. i am debating on should i still use web deploy + remote service or try to use nuget to bundle my web application and use powershell or something like octupus to deploy ?? 现在我们将使用nuget进行依赖管理但是考虑到nuget中的包装容易...我正在讨论我是否仍然使用web部署+远程服务或尝试使用nuget捆绑我的Web应用程序并使用powershell或类似octupus的东西部署 ??

For my web deploy becomes little complex when even try to do simple things like include , exlcude , gac or registry or iis config ( which again not very flexible ). 对于我的Web部署变得有点复杂,甚至尝试做简单的事情,如包括,exlcude,gac或注册表或iis配置(这也不是非常灵活)。

But on the other hand it comes with remote service and all i need to do is through the package to the service and i am done.. 但另一方面它带有远程服务,我需要做的就是通过包到服务,我完成了..

Please give your inputs on this comparison. 请提供您对此比较的意见。

-raj -raj

NuGet is a dependency manager, and as such is appropriate for use at development/build, not deployment time. NuGet是一个依赖管理器,因此适合在开发/构建时使用,而不适用于部署时。 From a deployment perspective, it doesn't offer you any more than what a zip file does... except all the overhead of trying to fit NuGet in the process. 从部署的角度来看,它不会提供比zip文件更多的功能......除了尝试在过程中适应NuGet的所有开销。

Take a look at Inedo's BuildMaster . 看看Inedo的buildmaster的 It can take care of the process from source control through production deployment. 它可以处理从源控制到生产部署的过程。 There's also a free version that will most certainly handle your requirements, and it also has a module to manage your configuration files so you don't need to worry about doing transforms. 还有一个免费版本,它肯定会满足您的要求,它还有一个模块来管理您的配置文件,因此您无需担心进行转换。

(disclaimer: I work for Inedo) (免责声明:我为Inedo工作)

I am setting up a system that uses NuGet and Webdeploy. 我正在建立一个使用NuGet和Webdeploy的系统。

NuGet is used as the repository format, so the build system publishes NuGet packaged artifacts. NuGet用作存储库格式,因此构建系统发布NuGet打包工件。

The Deployment systemn uses NuGet to get the RIGHT packaged artifact from the NuGet repository. Deployment systemn使用NuGet从NuGet存储库获取RIGHT打包工件。

The build artififact happens to be WebDeploy for easy installation. 构建artififact恰好是WebDeploy以便于安装。

I am still working out if I am going to use puppet, chef or octupus to orchastrate the deployment. 如果我要使用puppet,chef或octupus来协调部署,我仍然在努力。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM