Dev Environment Setup and Configuration - lerwine/FsInfoCat GitHub Wiki

HomeSetup and Configuration | Development Operations


Development Setup

1. Install Application Dependencies

Optional Applications

The following are applications that are not required, but can be helpful for development and troubleshooting:

2. Global Tools setup

From Visual Studio Code, open a terminal (Ctrl+`) and run the following commands:

dotnet tool install --global dotnet-ef
dotnet tool install --global dotnet-aspnet-codegenerator
dotnet tool install --global dotnet-outdated-tool

3. Install / Upgrade Pester

The instructions in this section are adapted from the Install Instructions on Pester's website.

Before upgrading Pester, check to see if you are already running version 5 (or later). Open Terminal in VS Code (Ctrl+`) and run the following command:

(Get-Module -ListAvailable -Name 'Pester') | Select-Object -ExpandProperty 'Version'

Upgrading from version 3

Open PowerShell as administrator and run the following commands:

$module = "$($env:ProgramFiles)\WindowsPowerShell\Modules\Pester";
takeown /F $module /A /R
icacls $module /reset
icacls $module /grant "*S-1-5-32-544:F" /inheritance:d /T
Remove-Item -Path $module -Recurse -Force -Confirm:$false
Install-Module -Name Pester -Force -SkipPublisherCheck

Upgrading from version 4

Open PowerShell as administrator and run the following commands:

Uninstall-Module -Name Pester -Force -ErrorAction Stop
Install-Module -Name Pester -Force -SkipPublisherCheck

4. Initialize local repository

  1. Create local repository of FsInfoCat solution.
  2. In Visual Studio Code, open the FsInfoCat solution, click on Extensions Listing button Extensions Button, install recommended extensions.

HomeSetup and Configuration | Development Operations