Skip to content

Commit

Permalink
Add .NET Core version to EventLog (dotnet/coreclr#21566)
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/coreclr@e33e50e
  • Loading branch information
sywhang authored Dec 18, 2018
1 parent 98801f5 commit 964a8bf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/coreclr/src/vm/eventreporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include "typestring.h"
#include "debugdebugger.h"

#include <configuration.h>

#include "../dlls/mscorrc/resource.h"

#include "getproductversionnumber.h"
Expand Down Expand Up @@ -106,7 +108,16 @@ EventReporter::EventReporter(EventReporterType type)
{
m_Description.Append(ssMessage);
m_Description.Append(W("\n"));
}
}
}

// Log the .NET Core Version if we can get it
LPCWSTR fxProductVersion = Configuration::GetKnobStringValue(W("FX_PRODUCT_VERSION"));
if (fxProductVersion != nullptr)
{
m_Description.Append(W(".NET Core Version: "));
m_Description.Append(fxProductVersion);
m_Description.Append(W("\n"));
}

ssMessage.Clear();
Expand Down

0 comments on commit 964a8bf

Please sign in to comment.