This new agent needs a solution to build our packages. This means we have to create an empty solution in Visual Studio and set the package of the project to our main package. Like this:
If you have more than one package or models, you need to add a project to this solution for each separate model you have.
We have to create another file called packages.config with the following content:
<?xml version=”1.0″ encoding=”utf-8″?><packages> <package id=”Microsoft.Dynamics.AX.Platform.DevALM.BuildXpp” version=”7.0.5644.16778″ targetFramework=”net40″ /> <package id=”Microsoft.Dynamics.AX.Application.DevALM.BuildXpp” version=”10.0.464.13″ targetFramework=”net40″ /> <package id=”Microsoft.Dynamics.AX.Platform.CompilerPackage” version=”7.0.5644.16778″ targetFramework=”net40″ /></packages> |
The version tag will depend on when you’re reading this, but the one above is the correct one for PU35. We’ll need to update this file each time a new version of the nugets is published.
And, to end with this part, we need to add the solution, the nuget.config and the packages.config files to TFVC. This is what I’ve done:
You can see I’ve created a Build folder in the root of my DevOps project. That’s only my preference, but I like to only have code in my branches, even the projects are outside the branches, I only want the code to move between merges and branches. Place the files and solution inside the Build folder (or wherever you decide).