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

[sdk]: Include .c and .h items by default #597

Closed
wants to merge 4 commits into from

Conversation

seclerp
Copy link
Contributor

@seclerp seclerp commented Jun 1, 2024

Fixes #574

Instead of just ignoring all default items with EnableDefaultItems=false I decided to switch off all particular default item groups except the ones included in Compile items. This allows us to be better integrated with common SDK properties.

Since DefaultLanguageSourceExtension only supports 1 extension, others like .h were added separately with the same switching logic.

For the reference I used Microsoft.NET.Sdk.DefaultItems.props

@ForNeVeR
Copy link
Owner

ForNeVeR commented Jun 1, 2024

CI seems unhappy with the changes. Could you please take a look?

@ForNeVeR
Copy link
Owner

ForNeVeR commented Jun 3, 2024

There was a problem likely caused by us caching the templates produced during tests, in system-wide nuget cache. I'll take a look at that: we should not use the system cache during template/sdk tests.

Copy link
Owner

@ForNeVeR ForNeVeR left a comment

Choose a reason for hiding this comment

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

Thanks!

@ForNeVeR ForNeVeR closed this in #600 Jun 9, 2024
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.

SDK: include all the .c files by default?
2 participants