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

Evaluate OutputFileName and OutputDirectory Item Metadata #197

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

T-Ernst
Copy link

@T-Ernst T-Ernst commented Dec 11, 2024

This adds the missing functionality to evaluate Item Metadata from T4Transform and T4Preprocess in T4.BuildTools.

Furthermore, the T4Preprocess items have their namespace calculated automatically from their relative path; thereby mimicking the behavior of the legacy T4 external tool of Visual Studio.

Also a bug has been fixed when a template itself defines the output extension via <#@ output extension=".whatever" #>.

This fixes the following open Issues:

The automatic namespace calculation may fix #183, although OP requests an explicit override; this could be resolved with further Item Metadata. I'm happy to implement this if required.

@T-Ernst T-Ernst force-pushed the main branch 2 times, most recently from 393d19b to 381de2d Compare December 13, 2024 11:25
@T-Ernst
Copy link
Author

T-Ernst commented Jan 22, 2025

@dotnet-policy-service agree company="dSPACE GmbH"

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

Successfully merging this pull request may close these issues.

T4.BuildTools No way to override default namespace for preprocessed templates.
1 participant