---
title: Build .NET in your pipeline
description: "**Note**: what I show in this post is done using the [Azure-hosted pipeline](http://ariste.info/en/2020/05/azure-hosted-build-dynamics365-finance-scm/) but it should also be possible to do it using a self-hosted agent (aka old build VM). The build step of the pipeline invokes [msbuild.exe](https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild?view=vs-2019&WT.mc_id=DOP-MVP-5003976) which can…"
url: "https://ariste.info/dynamics365almguide/build-net-in-your-pipeline/"
updated: "2024-08-25"
category: Legacy Guide / Add and build .NET projects
---

# Build .NET in your pipeline

**Note**: what I show in this post is done using the [Azure-hosted pipeline](http://ariste.info/en/2020/05/azure-hosted-build-dynamics365-finance-scm/) but it should also be possible to do it using a self-hosted agent (aka old build VM).   The build step of the pipeline invokes [msbuild.exe](https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild?view=vs-2019&WT.mc_id=DOP-MVP-5003976) which can build .NET code. If we check the logs of the build step we will see it:

![msbuild.exe builds C# projects and our X++ ones too!](http://ariste.info/wp-content/uploads/2020/09/2020-09-29-13_03_44.png)
msbuild.exe builds C# projects and our X++ ones too!

   Remember that X++ is part of the .NET family after all... a second cousin or something like it.

![Build .NET in your pipeline](http://ariste.info/wp-content/uploads/2020/09/2020-09-29-13_21_54.png)
Build folder

    If you've read the blog post about [Azure-hosted builds](http://ariste.info/en/2020/05/azure-hosted-build-dynamics365-finance-scm/) you must've seen I'm putting the solution that references all my models in a folder called Build at the root of my source control tree (left image).   That's just a personal preference that helps me keep the .config files and the solution I use to build all the models in a single, separate place.   By using a solution and pointing the build process to use it I also keep control of what's being built in a single place.

#### Subscribe!

Receive an email when a new post is published
