我可以创建一个的NuGet包没有一个项目文件 [英] Can I create a nuget package without a project file

查看:103
本文介绍了我可以创建一个的NuGet包没有一个项目文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在努力八达通,部署集成与我们现有的构建过程。八达通,部署预计,的NuGet包来部署。现在,由于各种原因,我们改变各种文件的配置对编译后的文件生成后,因此,如果我们使用了octopack工具,包装在我们的构建过程中过早地发生的我们。

We are trying to integrate Octopus-Deploy with our existing build process. Octopus-Deploy expects nuget packages to deploy. Now, for a variety of reasons, we change various file configurations after the build against the compiled files, so if we used the octopack tool, the packaging happens too early in our build process for us.

我们将结束与例如一个文件夹mywebsite_QA和mywebsite_UAT,每个都包含了正确的配置文件,等等,这是我们希望部署thesefolders。

We will end up with a folder of e.g. mywebsite_QA and mywebsite_UAT, each containing the correct config files, etc, and it is thesefolders that we wish to deploy.

我想利用这些已经建成的文件,(主要是Web应用程序),并把他们变成的NuGet包。

I would like to take these already built files, (mostly web applications) and turn them into nuget packages.

我有点用的NuGet一个小白,我不能看到一个简单的方法来做到这一点,因为它似乎需要一个项目文件或程序集。

I am a bit of a noob with nuget, and I cannot see an easy way to do this, because it seems to require a project file or assembly.

是否有某种方式把一个网站的目录结构,把它变成一个的NuGet包?

推荐答案

是的,你可以,看到的NuGet包文件 http://docs.nuget.org/docs/reference/command-line -reference#Pack_Command

Yes you can, see the Nuget pack documentation http://docs.nuget.org/docs/reference/command-line-reference#Pack_Command

刚刚与在构建过程中,正确的选项运行nuget.exe。

Just run nuget.exe with the right options during your build process.

如果你正在使用的TeamCity,你可以用它的NuGet包的步骤。

If you are using TeamCity, you can use it's Nuget package step.

这篇关于我可以创建一个的NuGet包没有一个项目文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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