For a project that built this morning with VS 2019 16.9.3 I am getting a compile/link time error after upgrading to VS 2019 16.9.4:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(1480,5): error MSB3025: The source file "C:\MySource\MyLib\Debug\" is actually a directory. The "Copy" task does not support copying directories.
A check of Microsoft.CppCommon.targets for that line shows:
<Copy Condition="'%(ClCompile.ProgramDatabaseFileName)' != '$(OutDir)$(TargetName).pdb' and
('%(ClCompile.DebugInformationFormat)' == 'ProgramDatabase' or '%(ClCompile.DebugInformationFormat)' == 'EditAndContinue') and
Exists(%(ClCompile.ProgramDatabaseFileName))" SourceFiles="%(ClCompile.ProgramDatabaseFileName)" DestinationFiles="$(OutDir)$(TargetName).pdb" />
There is clearly a file name and extension, $(TargetName).pdb, in the DestinationFiles:
$(OutDir)= "C:\MySource\MyLib\Debug\"
$(TargetName)= "MyLib"
It seems like the last part of DestinationFiles, "$(TargetName).pdb" is being ignored.
Again, the only change between successful build and unsuccessful build is the upgrade of VS 2019 from 16.9.3 to 16.9.4.
Update:
In looking at the error more, I realized the error reads "The source file...", which implies a problem with
SourceFiles="%(ClCompile.ProgramDatabaseFileName)"