Skip to content

Could not copy the file deps.json because it was not found. Microsoft.Common.CurrentVersion.targets #17943

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

Closed
wants to merge 1 commit into from

Conversation

komdil
Copy link

@komdil komdil commented May 28, 2021

This PR fixes issue: #17645

@ghost
Copy link

ghost commented May 28, 2021

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.

@benvillalobos
Copy link
Member

When investigating https://developercommunity.visualstudio.com/t/Could-not-copy-the-file-SomeFiledepsj/1380752 this solution actually resolved the issue. Not sure if it's the right path or why this PR is failing, but thought it was worth mentioning.

@komdil
Copy link
Author

komdil commented Jul 22, 2021

@benvillalobos That workaround does not work on my case. In my opinion, there should be another solution because it looks like a bug. It is working when I rebuild once, when I rebuild twice it is failing. I think there should be a small change somewhere, but I don't know where.
Can someone review that PR: #14488. That PR fixes issue related to publishing project: #1675
Maybe we should add publish conditions or add another condition there?

@komdil
Copy link
Author

komdil commented Aug 2, 2021

@benvillalobos any comments?

@benvillalobos
Copy link
Member

@komdil I'm not familiar with the details of applying _UseBuildDependencyFile, but applying UseCommonOutputDirectory (as suggested in the original issue) worked as well and that seemed ideal for the scenario of multiple projects pointing to the same output directory.

@komdil
Copy link
Author

komdil commented Aug 19, 2021

@komdil I'm not familiar with the details of applying _UseBuildDependencyFile, but applying UseCommonOutputDirectory (as suggested in the original issue) worked as well and that seemed ideal for the scenario of multiple projects pointing to the same output directory.

Unfortunately, UserCommandOutputDirectory not helped. I want to know why this issue is not marked as a bug. The reason is I am available to rebuild my solution only once and getting errors on rebuilding twice. If my project configurations are wrong, why I am not getting these errors on the first time rebuilding?

@komdil komdil closed this Jan 23, 2023
@komdil komdil deleted the doubleRebuildIssueFix branch January 23, 2023 09:04
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