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

Always add .cs files generated by text templating #324

Conversation

cmello
Copy link
Contributor

@cmello cmello commented Jan 11, 2024

Always include files generated by text templating (.tt), even if they don't exist yet.
These files are expected to be absent during a clean build, as they are generated
during the build process. Therefore, they cannot be left out of the csproj file.

// Always include files generated by text templating (.tt), even if they don't exist yet.
// These files are expected to be absent during a clean build, as they are generated
// during the build process. Therefore, they cannot be left out of the csproj file.
AddContentGeneratedItem(itemGroups, ttFile, generatedFile, generator, false, _projectPathCapitalized, project, true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

AddContentGeneratedItem is only use here. we should remove the last parameter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the last parameter. Sorry for the long delay. Thanks for your attention!

@@ -0,0 +1,38 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you need to rebase. We changed this in main branch.

@jspelletier
Copy link
Collaborator

please rebase.

Always include files generated by text templating (.tt), even if they don't exist yet.
These files are expected to be absent during a clean build, as they are generated
during the build process. Therefore, they cannot be left out of the csproj file.
@cmello cmello force-pushed the always_add_cs_files_generated_by_text_templating branch from 5d55c77 to 5ac0751 Compare February 5, 2024 22:29
@cmello
Copy link
Contributor Author

cmello commented Feb 5, 2024

Rebased, thanks!

@jspelletier jspelletier merged commit 1a93118 into ubisoft:main Feb 9, 2024
49 checks passed
@jspelletier
Copy link
Collaborator

merged. thanks

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.

None yet

2 participants