This repository contains a simple .NET Framework 4.8 WinForms application designed to update and manage copyright notices in source code files. The program allows users to:
-
Find and Remove Existing Notices:
- Locate the first single-line or multi-line comment at the beginning of each file and remove it if it matches an existing copyright notice.
-
Add New Copyright Notice:
- Optionally add a new copyright notice to the beginning of each file if no existing notice is found.
- Regex-based Comment Detection: Utilizes regular expressions to identify and manipulate comments in C# source code files.
- Interactive User Interface: Implemented using .NET WinForms, providing a straightforward and user-friendly interface.
- Clone the repository to your local machine.
- Open the solution in Visual Studio.
- Build and run the application.
- Enter the path to the target source code file.
- Configure options such as finding existing notices and adding new notices.
- Click the "Update Copyright Notice" button.
- .NET Framework 4.8 or later.
- Visual Studio (for development and testing).