dotnet / dotnet/sdk

PublishItemsOutputGroup target is missing some outputs published by ComputeFilesToPublish

Open
#42,255 1 comment 1 reaction 1 assignee Claimed by @dsplaisted View on GitHub
Area-NetSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Describe the bug
`PublishItemsOutputGroupOutputs` should include all items that will be published when running `Publish` target without actually publishing them.

However, some targets that [`ComputeFilesToPublish`](https://github.com/dotnet/sdk/blob/main/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Publish.targets#L453-L460) depends on only update `ResolvedFileToPublish` items after publishing them.

For example, `App.deps.json` is added to `ResolvedFileToPublish` by `GeneratePublishDependencyFile` target after calling `GenerateDepsFile` task. See https://github.com/dotnet/sdk/blob/main/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Publish.targets#L1212.
Consequently, `App.deps.json` is missing from `PublishItemsOutputGroupOutputs` if only `PublishItemsOutputGroup` target is invoked on the project.

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.