Skip to content
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

Similar to Host and Environment Variable bound symbols, consider adding support to invoke Static .NET Properties such as DateTime.Now, Environment.* #7497

Open
egvijayanand opened this issue Jan 27, 2024 · 0 comments

Comments

@egvijayanand
Copy link
Contributor

egvijayanand commented Jan 27, 2024

Is your feature request related to a problem? Please describe.

Similar to Host (host) and Environment Variables (env) bound symbols, consider adding support to invoke Static .NET Properties such as DateTime.Now, Environment.* (like static:DateTime.Now)

Describe the solution you'd like.

"symbols": {
   "ThisYear": {
      "type": "bind",
      "binding": "static:DateTime.Now.Year"
    }
}

This can then be used to generate copyright info in the source files generated. This is just a sample. Likewise, using the information available with the static properties a lot of things can be accomplished.

Additional context

No response

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