dotnet / dotnet/msbuild

Way to access MSBuild's internal properties dictionary

Open
#5,834 0 comments 7 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

In other build systems, we can access the list of tracked variable in a given context and use it for simple debugging. e.g. CMake provides `get_cmake_property(allVars VARIABLES)`, that sets CMake's internal dictionary tracking properties in user variable `allVars`, which can then be iterated for printing key/values etc.

With MSBuild, we can either use VS for high quality script debugging (of XML files), or we can use plain dumps `/v:d[iag]`, binary log etc. However, I am looking for a more granular control over internal dictionary, which MSBuild uses to track properties' names and current values in the context. Something like:

```xml



```

similar discussions:
* https://stackoverflow.com/questions/4548618/list-all-defined-msbuild-variables-equivalent-to-set
* https://stackoverflow.com/questions/867691/how-to-programmatically-list-all-properties-defined-while-executing-msbuild

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.