dotnet-template

Development

Environment setup

  • Copy and rename the file .env.example to .env:

    cp .env.example .env

    Customize the values if you see fit

Useful commands

  • Create a solution

    dotnet new sln --name <name of the solution>
  • Create a project

    dotnet new <type of projects>

    To see a full list of possible types, use the following command:

    dotnet new list

  • Add a new project to a existing solution

    dotnet sln add ./<path to the>/<projects target>.csproj

    Considering the same directory of the .sln file

  • Link projects with refereces

    dotnet add ./<path to the>/<receiver project>.csproj \
        reference ./<path to the>/<referenced project>.csproj

References