Upgrade project to .NET 6 and add GitHub Actions workflow#1
Merged
CodeMangler merged 1 commit intomasterfrom Jun 5, 2025
Merged
Upgrade project to .NET 6 and add GitHub Actions workflow#1CodeMangler merged 1 commit intomasterfrom
CodeMangler merged 1 commit intomasterfrom
Conversation
This commit brings several major updates to the EventLogAnalyzer project:
1. **Framework Upgrade:**
* All projects (Console Client, EventLog, UnitTests) have been upgraded from .NET Framework 2.0 to .NET 6.
* Project files (.csproj) have been converted to the modern SDK-style format.
* The NUnit testing framework reference in UnitTests has been updated to use NuGet packages (NUnit 3.13.3, NUnit3TestAdapter 4.5.0, Microsoft.NET.Test.Sdk 17.3.2).
2. **Build System:**
* The primary build mechanism is now `dotnet build` using the `EventLogAnalyzer.sln` solution file.
* Obsolete build scripts (`build.bat`, `eventloganalyzer.build`) have been removed.
* The `System.Diagnostics.EventLog` NuGet package (v6.0.0) was added to `EventLog.csproj` to resolve compatibility issues with `EventLogEntryType`.
* Fixed build issues related to duplicate EmbeddedResources and assembly attributes in `Console Client.csproj`.
3. **GitHub Actions CI:**
* A new GitHub Actions workflow (`.github/workflows/dotnet-build.yml`) has been added.
* This workflow builds and tests the solution on `windows-latest` (due to Windows-specific EventLog APIs) for pushes and pull requests to the `main` branch.
4. **Codebase Cleanup:**
* Removed obsolete solution files (`EventLog Analyzer - VS 2005.sln`, `EventLog Analyzer - VS 2008.sln`).
* Removed the local `lib/nunit.framework.dll`.
* Removed `EventLog/EventLog.idc`.
* Removed the `Output/` directory (build artifacts) from source control and added it to `.gitignore`.
* Added `.vs/` to `.gitignore`.
* Deleted `AssemblyInfo.cs` files as their content is now managed by the SDK-style projects.
5. **Documentation:**
* `README.md` has been updated with new build instructions for .NET 6.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit brings several major updates to the EventLogAnalyzer project:
Framework Upgrade:
Build System:
dotnet buildusing theEventLogAnalyzer.slnsolution file.build.bat,eventloganalyzer.build) have been removed.System.Diagnostics.EventLogNuGet package (v6.0.0) was added toEventLog.csprojto resolve compatibility issues withEventLogEntryType.Console Client.csproj.GitHub Actions CI:
.github/workflows/dotnet-build.yml) has been added.windows-latest(due to Windows-specific EventLog APIs) for pushes and pull requests to themainbranch.Codebase Cleanup:
EventLog Analyzer - VS 2005.sln,EventLog Analyzer - VS 2008.sln).lib/nunit.framework.dll.EventLog/EventLog.idc.Output/directory (build artifacts) from source control and added it to.gitignore..vs/to.gitignore.AssemblyInfo.csfiles as their content is now managed by the SDK-style projects.Documentation:
README.mdhas been updated with new build instructions for .NET 6.