Fix AssemblyLoadBuildEventArgs transfering

This commit is contained in:
Jan Krivanek 2023-06-22 15:43:17 +02:00
Родитель 402af3b051
Коммит cab7a25b40
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -44,6 +44,8 @@ namespace Microsoft.Build.Framework
internal override void WriteToStream(BinaryWriter writer)
{
base.WriteToStream(writer);
writer.Write7BitEncodedInt((int)LoadingContext);
writer.WriteTimestamp(RawTimestamp);
writer.WriteOptionalBuildEventContext(BuildEventContext);
@ -56,6 +58,8 @@ namespace Microsoft.Build.Framework
internal override void CreateFromStream(BinaryReader reader, int version)
{
base.CreateFromStream(reader, version);
LoadingContext = (AssemblyLoadingContext)reader.Read7BitEncodedInt();
RawTimestamp = reader.ReadTimestamp();
BuildEventContext = reader.ReadOptionalBuildEventContext();