简体   繁体   English

有没有办法在TFS构建中包含扩展?

[英]Is there any way to include extensions in TFS build?

Nuget restorating is good when using CI in VSTS. 在VSTS中使用CI时,Nuget恢复很好。 However I am using some extensions like SQLite Runtime in my project. 但是我在我的项目中使用了一些像SQLite Runtime这样的扩展。 Is there any way to include those extension dlls other than referencing them in the project? 除了在项目中引用它们之外,有没有办法包含那些扩展dll?

Some packages (like redis for instance) have a "tools" folder which allows you to pull the "runtime" from nuget. 有些软件包(比如redis)有一个“tools”文件夹,允许你从nuget中提取“运行时”。
If your tool is not shipped as a nuget package you'll have either to: 如果您的工具未作为nuget包发货,您将拥有:
- Include the tool on the source control (not the best thing if you want to keep the repo as small as possible) - 在源代码控件上包含该工具(如果你想让repo尽可能小,那就不是最好的了)
- Install the tool on the build machine (only possible if you have your own agents and you're not using the hosted agent) - 在构建计算机上安装该工具(仅当您拥有自己的代理并且未使用托管代理时才可以)
- Have a script to pull it from the web without relying on nuget (again really depends on the tool and if it has a "run without installation" version) - 有一个脚本可以从网络上取下它而不依赖于nuget(再次真的取决于工具,如果它有“无安装运行”版本)
Hope that helps 希望有所帮助

Besides referencing them in the project which actually is the most recommended way. 除了在项目中引用它们,这实际上是最推荐的方式。

You can also manually install the extension on the build agent . 您还可以在构建代理上手动安装扩展 Just like how to use it in your local environment. 就像在本地环境中使用它一样。 Make sure the environment on the build agent is as same as your local. 确保构建代理上的环境与本地环境相同。

Check the extension and dlls in source control. 检查源代码管理中的扩展和dll。 Even though we do not suggest to manage dlls for source control in TFS. 即使我们不建议在TFS中管理源代码控制的dll。

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

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