BuildXL/Examples/MsBuildHelloWorld/HelloWorldCS
Iman Narasamdya 6b28ca2771 Merged PR 727557: MSBuild frontend documentation
Added MSBuild frontend documentation.

Include:
- Added more examples for MSBuild frontends
- Reorganized DScript frontend.
2023-07-12 20:57:54 +00:00
..
HelloWorldCS.csproj Merged PR 727557: MSBuild frontend documentation 2023-07-12 20:57:54 +00:00
Program.cs Merged PR 727557: MSBuild frontend documentation 2023-07-12 20:57:54 +00:00
README.md Merged PR 727557: MSBuild frontend documentation 2023-07-12 20:57:54 +00:00
build.cmd Merged PR 727557: MSBuild frontend documentation 2023-07-12 20:57:54 +00:00
config.dsc Merged PR 727557: MSBuild frontend documentation 2023-07-12 20:57:54 +00:00

README.md

This example demonstrates how to build a simple Hello World C# project using MSBuild frontend.

Prerequisite

  1. Install Visual Studio.

Instructions

  1. Open a Developer command prompt for VS.
  2. Restore project: msbuild /t:restore.
  3. Set the environment variable BUILDXL_BIN to the BuildXL binary folder containing bxl.exe. For example, if your BuildXL repo is in D:\BuildXL, then building BuildXL itself using bxl.cmd -Minimal will put the bxl.exe in D:\BuildXL\Out\Bin\debug\win-x64.
  4. Run build.cmd.

The build outputs will be located in the bin folder. For further configuration options, see MsBuildResolver interface definition.