Skip to content

Extend MSBuild binding mechanism to solution properties #9058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
glopesdev opened this issue May 22, 2025 · 0 comments
Open

Extend MSBuild binding mechanism to solution properties #9058

glopesdev opened this issue May 22, 2025 · 0 comments

Comments

@glopesdev
Copy link

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 <Authors> or <Copyright>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant