This repo holds a bash script for creating the directory structure and boilerplate code files for a TDD-ready C#/.NET project.
- Ensure script is executable using
chmod u+x setup.sh
NOTE: You may have to use sudo - Run the script. Mac:
sh setup.sh
. Linux:./setup.sh
- Follow the prompt to enter the name of your project and hit enter.
NOTE: Don't forget to run
dotnet restore
once you have written some actual class/test code.
- C#
- .NET5
- MSTest
- Bash script (for project setup)
- Clone this repository via
git clone https://github.com/Usarneme/PROJECTNAME.Solution
- Enter the newly created directory via
cd PROJECTNAME.Solution/
- Enter the project directory
cd PROJECTNAME/
and install requirements viadotnet restore
- From within the
PROJECTNAME/
project directory, first rundotnet build
thendotnet run
- (Optional) If you want to run the Test Suite, enter the test directory
cd PROJECTNAME.Tests/
and rundotnet restore
followed bydotnet test
- C# - instructions for installing can be found at https://www.geeksforgeeks.org/how-to-install-and-setup-visual-studio-for-c-sharp/
- .NET - instructions for installing can be found at https://docs.microsoft.com/en-us/dotnet/framework/install/guide-for-developers
- A terminal/command line application such as iTerm on Mac or CMD/GitBash on Windows
- NO KNOWN ISSUES
- Please open a pull request if you have any issues!
Made with ❤️ in Portland, Oregon.