Skip to content

Incremental build broken when using Metal shaders #24816

@jeremy-visionaid

Description

@jeremy-visionaid

Apple platform

iOS, Mac Catalyst

Framework version

net10.0-*

Affected platform version

.NET 10.0.103

Description

When Metal shaders are referenced in a project, the shaders are always compiled even if they have not changed.

	<ItemGroup>
		<Metal Include="*.metal" />
	</ItemGroup>

Steps to Reproduce

git clone https://github.com/jeremy-visionaid/MauiTestApp/tree/metal
dotnet build -f net10.0 -bl
dotnet build -f net10.0 -bl

Did you find any workaround?

No response

Build logs

msbuild.binlog.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixincremental-buildsmsbuildIssues affecting our msbuild tasks/targets

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions