A production-ready .NET template that creates a console application with xUnit v3 test project structure, following best practices and clean architecture.
- ✅ Console application with sample code
- ✅ xUnit v3 test project with examples
- ✅ Solution file linking both projects
- ✅ Microsoft Testing Platform integration
- ✅ Sample tests demonstrating Fact and Theory patterns
- ✅ Support for .NET 10 (default), .NET 9, and .NET 8
dotnet new install console-with-testsdotnet new console-with-tests -n MyProjectThis creates:
MyProject/
MyProject.sln # Solution file
src/
App/
App.csproj # Console application
Program.cs # Main program with sample Add method
tests/
App.Tests/
App.Tests.csproj # xUnit v3 test project
UnitTest1.cs # Sample unit tests
xunit.runner.json # xUnit configuration
# .NET 10 (default)
dotnet new console-with-tests -n MyProject
# .NET 9
dotnet new console-with-tests -n MyProject --Framework net9.0
# .NET 8
dotnet new console-with-tests -n MyProject --Framework net8.0cd MyProject
dotnet build
dotnet test- .NET SDK 8.0 or later
- .NET 10.0 SDK for net10.0 projects (default)
We welcome contributions! See CONTRIBUTING.md for details.
Found a security issue? See SECURITY.md for reporting procedures.
MIT License - see LICENSE for details.
- 🐛 Report Issues
- 💬 Discussions
- 📖 Wiki
Made with ❤️ for the .NET Community
Star ⭐ this repository if you find it helpful!
Star ⭐ this repository if you find it helpful!