A modern, cross-platform Excel export library and web application built with .NET 9 and ASP.NET Core.
- Cross-platform compatibility - Works on Windows, macOS, and Linux
- Modern .NET 9 - Latest LTS version with performance improvements
- EPPlus integration - Professional Excel file generation
- ASP.NET Core web application - Modern web UI with Bootstrap
- Nullable reference types - Enhanced type safety
- Dependency injection - Modern .NET patterns
- Security headers - Production-ready security configuration
ExcelExportCSharp/
├── Code/
│ ├── ExcelExportNetCore/ # .NET 9 Class Library
│ │ ├── Entities/ # Data models
│ │ ├── Helper/ # Utility classes
│ │ └── Manager/ # Business logic
│ └── ExcelExportWeb/ # ASP.NET Core Web App
│ ├── Controllers/ # MVC Controllers
│ ├── Views/ # Razor Views
│ └── wwwroot/ # Static files
├── .github/ # GitHub configurations
│ └── dependabot.yml # Automated dependency updates
└── Docs/ # Documentation
- .NET 9 - Latest LTS framework
- ASP.NET Core - Modern web framework
- EPPlus 7.0.9 - Excel file generation
- Bootstrap 5 - Responsive UI
- Razor Pages - Server-side rendering
- Entity Framework - Data access (ready for implementation)
- .NET 9 SDK
- Visual Studio 2022, VS Code, or Rider
-
Clone the repository
git clone https://github.com/tarunbatta/ExcelExportCSharp.git cd ExcelExportCSharp -
Restore dependencies
dotnet restore
-
Build the solution
dotnet build
-
Run the web application
dotnet run --project Code/ExcelExportWeb/ExcelExportWeb.csproj
-
Open your browser Navigate to
https://localhost:5001orhttp://localhost:5000
- Users Data - Name, age, date of birth, salary
- Games Data - Name, popularity status
- Custom Data - Any DataTable structure
- Direct download - Browser-based file download
- Stream-based - Memory-efficient processing
- Custom formatting - Headers, styling, column widths
- Debug mode enabled
- Detailed error messages
- Hot reload support
- Optimized builds
- Security headers enabled
- HTTPS enforcement
- Error logging
- Content Security Policy - XSS protection
- HTTPS enforcement - Secure connections
- Security headers - Modern browser security
- Input validation - Request sanitization
- Error handling - Secure error responses
EPPlus- Excel file generationMicrosoft.AspNetCore.Mvc- Web frameworkSystem.Data- Data access
Microsoft.NET.Sdk.Web- Web application SDKMicrosoft.NET.Sdk- Class library SDK
This project has been completely migrated from .NET Framework 4.5 to .NET 9:
- ✅ Framework: .NET Framework 4.5 → .NET 9
- ✅ Web Framework: ASP.NET Web Forms → ASP.NET Core
- ✅ Project Format: Legacy .csproj → SDK-style
- ✅ Excel Library: Custom XML → EPPlus
- ✅ UI Framework: Web Forms → Razor Pages
- ✅ Build System: MSBuild → .NET CLI
- ✅ Cross-platform: Windows-only → Windows/macOS/Linux
- 🚀 Performance - 2-3x faster execution
- 🔒 Security - Modern security practices
- 📱 Responsive - Mobile-friendly UI
- 🛠️ Developer Experience - Hot reload, IntelliSense
- 🌐 Deployment - Container-ready, cloud-native
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE.txt file for details.
- Issues: GitHub Issues
- Documentation: Check the
Docs/folder - Examples: See the web application for usage examples
- Database Integration - Entity Framework Core
- API Endpoints - RESTful API for Excel export
- Advanced Formatting - Charts, formulas, conditional formatting
- Batch Processing - Multiple file generation
- Cloud Storage - Azure Blob, AWS S3 integration
- Authentication - User management and access control
Built with ❤️ using .NET 9 and ASP.NET Core