dotnet / dotnet/templating

Extend MSBuild binding mechanism to solution properties

Open
#9,058 0 comments 0 reactions 0 assignees View on GitHub
triage:transfer-to-sdk
Dominant language
No language data
Stars
1.7k
Forks
399
Avg merge
3d 5h
Merged PRs (30d)
39

Description

In the article https://github.com/dotnet/templating/wiki/Binding-and-project-context-evaluation#binding-to-msbuild-properties it is mentioned that "It is possible to bind symbols to MSBuild properties of the current project."

Upon testing I realized that this really only works for templates running inside a project folder, but will not work for templates running inside the root solution folder.

This would be useful to access properties in `Directory.Build.props` for example for creating documentation pages or other top-level content items which might benefit from accessing global solution properties such as `` or ``.

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.