I am using the DSC File Resource to update the application server with the latest build. This works great except for .PDB files. These never get updated. I've reproduced this behavior with just a single file. Here is a sample configuration
Configuration FileTestConfiguration {
param($HostName)
Node $HostName {
File AppDirectory {
SourcePath = "c:\temp\dsc\source"
DestinationPath = "c:\temp\dsc\target"
Type = 'Directory'
Checksum ='SHA-256'
Recurse = $true
MatchSource = $true
}
File PdbFile {
SourcePath = "c:\temp\dsc\pdbSource\MyNetHelpers.pdb"
DestinationPath = "c:\temp\dsc\pdbTarget\MyNetHelpers.pdb"
Checksum ='SHA-256'
Recurse = $true
MatchSource = $true
}
}
}
After running the configuration above the directory target will reflect the directory source, except for the .pdb file. The same behavior is exhibited with a single file as in the PdbFile block
I have run a number of tests with renaming of files, but this has no affect. It seems to be related to the .PDB format.
Has anyone seen this behavior, know what causes it or know if the configuration above is incorrect?