Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 1.22 KB

README.md

File metadata and controls

16 lines (9 loc) · 1.22 KB

MSBuild examples

This repo is created to include MSBuild examples

  1. 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.

    Please see the Custom Task-Code Generation Readme

  2. 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

    1. Use the pre-defined MSBuild Exec Task to do that.
    2. Use the MSBuild Custom Task derived from MSBuild Tool Task to do that.

    Please see the Rest-Api client Generation Readme

  3. How to test a MSBuild Custom Task