Skip to content

Conversation

@Tratcher
Copy link
Member

Fixes #5869

The tt files for generating code have been disabled for some time because of infrastructure changes. A recent PR showed how to set them up again. They don't run from the command line but do run automatically in VS when the tt file changes.

The tt file moved adjacent to the generated.cs file because the generator always wanted to output adjacently. In theory we could also add this config to the IIS project that consumes these shared files, but let's try this first.

I also updated the SLNF.

@ladeak
Copy link
Contributor

ladeak commented Nov 23, 2022

Feel free to go first with this PR and, I'll rebase.

<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>RequestHeaders.Generated.cs</LastGenOutput>
</None>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new to me - what does it do? Maybe it's new in Core and I've only used tt in Framework projects?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, I guess T4 became opt-in at some point and I missed it.

<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>RequestHeaders.Generated.cs</LastGenOutput>
</None>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, I guess T4 became opt-in at some point and I missed it.

@Tratcher Tratcher merged commit 0523570 into dotnet:main Nov 23, 2022
@Tratcher Tratcher deleted the tratcher/ttgen branch November 23, 2022 22:18
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Renenable .tt generated code for RequestHeaders.Generated.tt

3 participants