This repo is created to include MSBuild examples
-
The first example is the creation of a MSBuild Custom Task for code generation. The idea is to consume a txt file and generate code from it during the build process. It is simple in order to show the mechanism, then you will be able to create a more complex piece of code. Part of this effort includes how to ship and consume the MSBuild Custom Task as a NuGet package.
-
Generate a Rest Client API during the build process. The example uses NSawg as a client generator (It is also a code generation example). It is a very common scenario. We are going to create two examples
- Use the pre-defined MSBuild Exec Task to do that.
- Use the MSBuild Custom Task derived from MSBuild Tool Task to do that.