Make EventLog work without .NETFramework (#45884)
authorEric StJohn <ericstj@microsoft.com>
Tue, 15 Dec 2020 17:33:01 +0000 (09:33 -0800)
committerGitHub <noreply@github.com>
Tue, 15 Dec 2020 17:33:01 +0000 (17:33 +0000)
commit29c0438754e8f4bd6098f88ebeff7e59f9dda14b
tree931f28b3ddfc1d907bebd65d14b88cb68101216b
parente29b83934e7ceef9905f82bd6328cbc72db2278b
Make EventLog work without .NETFramework (#45884)

* Make EventLog work without .NETFramework

* Use a project file instead of targets to create message DLL

* Add EventLogMessagesTests

* Address feedback

* Exclude EventLogMessage tests on net48

* Apply code review feedback

Also fix one test which would fail on machine without .NETFramework.

* Fix HelpLink test
14 files changed:
eng/versioning.targets
src/libraries/Directory.Build.targets
src/libraries/System.Diagnostics.EventLog/src/Messages/EventLogMessages.mc [new file with mode: 0644]
src/libraries/System.Diagnostics.EventLog/src/Messages/EventLogMessages.rc [new file with mode: 0644]
src/libraries/System.Diagnostics.EventLog/src/Messages/EventLogMessages.res [new file with mode: 0644]
src/libraries/System.Diagnostics.EventLog/src/Messages/System.Diagnostics.EventLog.Messages.csproj [new file with mode: 0644]
src/libraries/System.Diagnostics.EventLog/src/Messages/generateEventLogMessagesRes.cmd [new file with mode: 0644]
src/libraries/System.Diagnostics.EventLog/src/Messages/readme.md [new file with mode: 0644]
src/libraries/System.Diagnostics.EventLog/src/System.Diagnostics.EventLog.csproj
src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/EventLog.cs
src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/EventLogInternal.cs
src/libraries/System.Diagnostics.EventLog/tests/EventLogMessagesTests.cs [new file with mode: 0644]
src/libraries/System.Diagnostics.EventLog/tests/System.Diagnostics.EventLog.Tests.csproj
src/libraries/System.Diagnostics.EventLog/tests/System/Diagnostics/Reader/ProviderMetadataTests.cs