Skip to content

Fix condition syntax for EnableDefaultItems#101

Open
gliljas wants to merge 1 commit intoCZEMacLeod:mainfrom
gliljas:patch-1
Open

Fix condition syntax for EnableDefaultItems#101
gliljas wants to merge 1 commit intoCZEMacLeod:mainfrom
gliljas:patch-1

Conversation

@gliljas
Copy link

@gliljas gliljas commented Mar 14, 2026

.net 10 msbuild is strict and outputs:

"Specified condition "$(EnableDefaultItems)" evaluates to "" instead of a boolean. "

.net 10 msbuild is strict and outputs:

"Specified condition "$(EnableDefaultItems)" evaluates to "" instead of a boolean. "
@CZEMacLeod
Copy link
Owner

I've been using the current version with the net10 sdk without any issue.
EnableDefaultItems should be populated with a boolean string in the base SDK which is included in SDK.props so should never be "".
I'm not sure why this is happening in your case.
Can you create a sample repo with a failing example?
I might merge this anyway for the next release just to make it more foolproof, but I don't think it is actually needed.

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.

2 participants