Skip to main content

C# .NET

danger

Do NOT start new projects with C# and .NET as the engineering strategy is to use full-stack TypeScript and Node.js

caution

This document does not apply to all teams, please confirm your team maintains .NET Core or .NET Framework projects

Some products at CRUK are coded in C# and target various versions of .NET Core or .NET Framework.

Getting started

If you are maintaining a C# project, you can determine the version of .NET you'll need to install by inspecting the *.csproj files within the repository:

<TargetFramework>netcoreapp3.1</TargetFramework>

.NET Core

If you're working with .NET core, you're in luck! You can choose to use WSL2 or native windows, then follow the instructions to download the correct version of dotnet core.

You won't need a VSTS license, and should be able to install a C# extension for VSCode.

.NET Framework

info

You will need to use native Windows

Start by submitting a request for a VSTS license in ServiceNow. While that is being worked, you'll be able to download Visual Studio and login with your CRUK email address for a trial until your license becomes valid.

Some .NET Framework projects have a requirement for IIS being installed locally. Details instructions can be followed here with TL;DR being:

Add or remove programs > Programs and Features > Turn Windows features on or off > Internet Information Services

Additional Information

  1. .NET Estate within the engineering department's confluence pages