Skip to content

[Bug]: Breaking change in serialized BuildResult can lead to errors in result caching with older data #10208

@dfederm

Description

@dfederm

Issue Description

I am seeing the following errors when using the result caching feature:

MSB4256: Reading input result cache files from path "<stuff>\Foo.MSBuildResultsCache" encountered an error: Unable to read beyond the end of the stream.
MSBUILD : error : MSB4258: Writing output result cache file in path "<stuff>\Bar.MSBuildResultsCache" encountered an error: Object reference not set to an instance of an object.

Specifically the result cache file was produced by MSBuild 17.10, but I'm currently using MSBuild 17.11.

It appears that a field was added to the BuildResult in #9987 which is likely causing this issue.

Steps to Reproduce

See detail above

Expected Behavior

See detail above

Actual Behavior

See detail above

Analysis

No response

Versions & Configurations

No response

Metadata

Metadata

Assignees

Labels

Priority:1Work that is critical for the release, but we could probably ship withoutbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions