How do you integrate ivy with MSbuild

前端 未结 2 713
清酒与你
清酒与你 2021-01-05 09:08

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.

相关标签:
2条回答
  • 2021-01-05 09:29

    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.

    0 讨论(0)
  • 2021-01-05 09:34

    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.

    0 讨论(0)
提交回复
热议问题