Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMove temp folder into repo to avoid state that causes build errors from time to time when rebuilding locally (and packages have updated) #903
Conversation
|
Should this new temp directory be added to the |
|
@bergmeister Would you be able to give a quick description of the kind of errors you're seeing? |
|
I have not recorded it but it should be somewhere in the Slack channel, multiple other people have experienced it as well where they had to delete those packages folders created by the build in the temp appdata folder. |
|
I occasionally get build failures that require me to remove the NuGet packages from some folder in my AppData directory before the build will succeed. |
|
Here is (hopefully) relevant discussion from Discord/Slack when I encountered the error: The error:
|
|
Sucks that the .NET API is giving us such a dud folder. I'd hope a solution to PowerShell/PowerShell#4216 doesn't have this issue. |
|
Even if .Net or PowerShell adds better API support for temp folders, the main point of this PR is to avoid any of that because it is effectively a global state that is causing issues and any state of a repo should be possible to be cleared with |
|
@bergmeister do you want to also update the Clean task to just use |
|
@TylerLeonhardt Good point about the |
I agree. When tools have secretly run |
|
LGTM |
|
We don't need to backport this since it's build related. |

Ideally, we should avoid this business and just use NuGet's global cache for that but this is a quickfix for not having to delete those folders in AppData that cause build errors when rebuilding. Now, a clean of the repo will sort this out (which is usually run when building the extension or PSES) to make those annoying local build errors disappear