Skip to content

baghatur/battleship-dotnetcore

Repository files navigation

Build status

Hint

This version is deprecated and will no longer be updated. Please use the .NET6 version to get the latest and greatest version: https://github.com/proscrumdev/battleship-dotnet


Build the application

In the root folder of the application there is a Battleship.sln which can be used to build all projects by executing

dotnet build 

Run the application

Running locally

You neet to have the dotnet core runtime installed on your local machine https://www.microsoft.com/net/download

You can now run the game with

dotnet run --project .\Battleship.Ascii\Battleship.Ascii.csproj

Running within a docker container

You can easily run the game within a docker container.

Change into the Battleship folder

docker run -it -v ${PWD}:/battleship mcr.microsoft.com/dotnet/sdk:5.0 bash

This starts a new container and maps your current folder on your host machine as the folder battleship in your container and opens a bash console. In bash then change to the folder battleship/Battleship.Ascii and run

dotnet run 

Execute Tests

You can run tests on the console by using

dotnet test 

If you want to run tests within VSCode, you can install the .NET Core Test Explorer Extension. In this case make sure, you set the Propery "Test Project Path" in the extension setting to this value:

**/*[Test|ATDD]*/*.csproj

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published