dotnet / dotnet/msbuild

MsBuild inferred outputs not behaving like I expected

Open
#8,093 7 comments 0 reactions 1 assignee Claimed by @ghogen View on GitHub
Area: Documentation backlog triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 6h
Merged PRs (30d)
139

Description

Hi,

Im trying to look into Incremental Builds, but having issues getting Inferred Outputs to behave like I expect.

```















```

When the Target runs with outdated;
https://i.imgur.com/SMoQl1j.png

As shown `ResultFromThisTask ` is added as Items.

When the Target is skipped because of the Input/Output the Items are not added from the Target;
https://i.imgur.com/3SLrtc7.png

From what I understood from the documentation about Input/Output and Incremental Builds, I should see my Items outputs inferred.
Adding a `Returns=` to the Target does not help.

Am I missing something?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.