Skip to content
main
Switch branches/tags
samples/msbuild/
samples/msbuild/

Latest commit

* Add MSBuild Examples

Co-authored-by: Federico Arambarri <62260324+v-fearam@users.noreply.github.com>

* markdownlint changes

* add missing build folder

* Create snippets.5000.json

* Delete snippets.5000.json

* Create snippets.5000.json

* Create snippets.5000.json

* Update snippets.5000.json

* Update snippets.5000.json

* Update snippets.5000.json

* Update snippets.5000.json

* Update PetReaderToolTaskExample.sln

* Update README.md

* Update README.md

* Update README.md

* Create snippets.5000.json

* Apply suggestions from code review

Co-authored-by: Gordon Hogenson <ghogen@microsoft.com>

* remove folder-specific .gitignore

* Update Test.README.md

Co-authored-by: Federico Arambarri <62260324+v-fearam@users.noreply.github.com>
Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com>
Co-authored-by: Gordon Hogenson <ghogen@microsoft.com>
ede0d10

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

MSBuild examples

This folder includes 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