What are all these *.FileListAbsolute.txt files for?

前端 未结 5 1061
广开言路
广开言路 2021-02-04 22:46

What are the *.FileListAbsolute.txt files for that Visual Studio generates? They keep cluttering up my searches. Such as when I search for *.csproj for adding projects to a .sln

5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-04 23:39

    It tracks files to be deleted upon clean. From Understanding the Clean target:

    [T]he common targets implement an honor-system method of tracking the output of "the last build". Well-behaved targets emit their outputs into an item named @(FileWrites), which is serialized to $(CleanFile) in the obj directory (it ends with .FileListAbsolute.txt) in a target named _CleanRecordFileWrites. Clean can then read that list and delete files in it during a subsequent MSBuild invocation.

提交回复
热议问题