How do you integrate ivy with MSbuild

萝らか妹 提交于 2019-12-03 20:54:29

问题


What approach has worked well for you combining IVY + msbuild?

Our goal is to integrate IVY into the C#/C++ build process for dependency resolution and publishing. We have tried adding it to custom tasks at the beginning and end of the build and we have tried wrapping the msbuild calls with ant+ apache-ant-dotnet.

Other options might be gradle, buildr, rake.

What do you use?

Thanks

Peter


回答1:


Most build technologies can use libraries found in a local directory. I'd suggest using the command-line ivy program to populate this, at the start of your build:

java -jar ivy.jar -ivy ivy.xml -settings ivysettings.xml -retrieve "lib/[conf]/[artifact].[ext]"

Your dependencies are listed in a standard ivy file called ivy.xml. The protocol, location and layout of your remote repository is described in ivysettings.xml

The advantage of this approach (as opposed to switching to Gradle, etc) is that you're not trying to replace your existing build tool. Ivy is solely concerned with managing dependencies.




回答2:


My team has been using Ivy for .NET for a couple of years very successfully. I know several more that give it a vote of confidence. Use it standalone. Wrap calls into msbuild tasks. No need to use Ant integration.



来源:https://stackoverflow.com/questions/6540840/how-do-you-integrate-ivy-with-msbuild

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!