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

Update ClickOnce targets for publishing deps.json #15316

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

sujitnayak
Copy link
Contributor

@sujitnayak sujitnayak commented Jan 13, 2021

Customer Impact
ClickOnce publish fails for projects referencing packages marked as developer dependency because the publishing specific deps.json file that needs to be referenced is not present.

Testing
CTI team has tested the change for the top 50 NuGet packages plus packages specifically affected by the bug.

Risk
Low. Only affects packages that are marked as developer dependency.

Code Reviewer:
johnhart;mslukewest

Description of fix
ClickOnce currently uses PublishDepsFilePath to reference the Publish version of deps.json. The publishing deps.json gets copied to the PublishDepsFilePath when copy targets run at the end of publish build.

However, ClickOnce manifest generation target that references this deps.json runs before the copy targets. This causes ClickOnce target to fail when it tries to access the publishing deps.json instead of the build generate deps.json (conditioned on the _UseBuildDependencyFile property).

The fix is to change the path used to reference the Publish deps.json from PublishDepsFilePath to IntermediateDepsFilePath. The IntermediateDepsFilePath is the intermediate location where the file is generated before its final copy to PublishDepsFilePath.

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

…ntermediateDepsFilePath. The file gets copied to the PublishDepsFilePath during the copy targets which is too late for ClickOnce's manifest generation task.
@sujitnayak sujitnayak changed the base branch from master to release/5.0.2xx January 14, 2021 19:27
@sujitnayak sujitnayak force-pushed the users/sujitn/1246995 branch from 817fb79 to e481da7 Compare January 14, 2021 19:28
@sujitnayak sujitnayak merged commit a4f5465 into release/5.0.2xx Jan 20, 2021
@mmitche mmitche deleted the users/sujitn/1246995 branch January 28, 2021 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants