Certain MSBuild configuration causes _wpftmp build output directories to not be deleted after each build
Open
Investigate
WindowsDesktop SDK
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
.NET Core 3.1.201
Windows 10 build 18363
**Problem description:**
Certain MSBuild configuration causes the compiler to leave behind directories with a `_wpftmp` suffix after a build completes. The problem seems to be related to custom ``s.
**Actual behavior:**
Temporary output directories are left behind after every build. A new directory is created per build.
**Expected behavior:**
Temporary output directories are deleted after every build.
**Minimal repro:**
[WpfApp1.zip](https://github.com/dotnet/wpf/files/4526132/WpfApp1.zip)

Contributor guide
Assessment
This issue has not been assessed yet.