dotnet / dotnet/msbuild

[Feature Request]: Extend CLI JSON evaluation to support solutions

Open
#9,227 8 comments 2 reactions 0 assignees View on GitHub
backlog Feature Request Priority:2 triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Summary

We should extend the CLI evaluation to support solutions, not just projects.

### Background and Motivation

In .NET 8 RC2 we added support for a few new flags to make extracting properties, items, and target results from a project easier from the command line:

* -getItem
* -getProperty
* -getTargetResults

These create JSON structures for the requested data, either after evaluation (if no target is specified) or after the specified target is run.

These work great for individual projects, but users expect the feature to work for solutions as well.

### Proposed Feature

There are a few ways this could go (not exhaustive):

* allow the existing syntaxes to work against the generated solution metaproject
* apply the existing syntax to each built traversal project in the solution
* ???

I have opinions about which of these I prefer, but we should gather more feedback.

### Alternative Designs

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.