Skip to content

Make sure that MSBuild.dll is hostable #6254

Closed
@ladipro

Description

@ladipro

Part of .NET 6.0 user story #5866

To load MSBuild directly into the CLI process we'll need to assembly-load MSBuild.dll and invoke its Main method via reflection. This issue is tracking the effort to:

  • Verify that the above is doable, i.e. the command line is always passed as Main parameters.
  • Introduce a hosting interface or another entry-point if Main is not enough.

This work is scoped only to the .NET Core version of MSBuild.

Acceptance criteria: A simple .NET application is able to load MSBuild.dll by path and run it with arbitrary command line arguments with full fidelity. Such a host can be a drop-in replacement for "dotnet build".

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions