Section 1

Preview this deck

Create a new test project using the .Net Core CLI

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

1

All-time users

2

Favorites

0

Last updated

1 year ago

Date created

Mar 1, 2020

Cards (31)

Section 1

(31 cards)

Create a new test project using the .Net Core CLI

Front

dotnet new xunit -o libraryname

Back

Prior to .Net Core 2.0, what commands required dotnet restore to be run afterward?

Front

dotnet new, dotnet build, dotnet run

Back

Keyboard shortcut for inserting breakpoint in VS Code for macOS

Front

F9

Back

Shortcut to add breakpoint in Visual Studio for Mac

Front

F9

Back

Build a library or solution using the .Net Core CLI

Front

dotnet build

Back

Syntax and definition of expression-bodied members

Front

public string Label { get => label; set => this.label = value ?? "Default label"; } Allows certain member functions (e.g., constructors, finalizers, getters and setters) to be implemented as expressions rather than statements

Back

In a C# interpolated string, how do you specify that you want to format a DateTime using the short time format?

Front

$"{date:t}"

Back

Activate the xUnit test runner using the .Net Core CLI

Front

dotnet test pathtotestcsproj

Back

Command to create a new solution using the .Net Core CLI

Front

dotnet new sln -o solutionname

Back

Create a new console app using the .Net Core CLI

Front

dotnet new console -o appname

Back

Command to add an existing class library to a solution using the .Net Core CLI

Front

dotnet sln add pathtocsproj

Back

What is an expression?

Front

Contains identifiers, literals, and operators, and can be reduced to some kind of value

Back

Keyboard shortcut for Step Over while debugging in VS Code for macOS

Front

F10

Back

Run an executable using the .Net Core CLI

Front

dotnet run -p pathtoappcsproj

Back

Keyboard shortcut for Continue while debugging in VS Code for macOS

Front

F5

Back

Add a reference to a project to another project using the .Net Core CLI

Front

dotnet add pathtocsprojtoaddthereferenceto reference pathtocsprojtoreference

Back

Restore dependencies and create an obj folder in the applicable library project using the .Net Core CLI

Front

dotnet restore

Back

What is a statement?

Front

Anything that can make up a line or several lines of code (e.g., if statement, return statement, variable assignment statement)

Back

Command to create a new class library (csproj) using the .Net Core CLI

Front

dotnet new classlib -o libraryname

Back

Keyboard shortcut for opening Debug tab in VS Code for macOS

Front

Shift + Command + D

Back

Add a reference to a project to another project by editing the .csproj file

Front

<ItemGroup> <ProjectReference Include="pathtocsprojtoreference" /> </ItemGroup>

Back

Syntax and benefits of using static directives

Front

using static typename Designates a type whose static members and nested types you can access without specifying a type name

Back

Keyboard shortcut to Stop debugging in VS Code for macOS

Front

Shift + F5

Back

Method to read user input from console

Front

Console.ReadLine()

Back

Add new packages to a project using the .Net Core CLI

Front

dotnet add projectname package packagename

Back

Keyboard shortcut for Step Out while debugging in VS Code for macOS

Front

Shift + F11

Back

Command to clear DNS cache in macOS

Front

sudo dscacheutil -flushcache

Back

In a C# interpolated string, how do you specify that you want to format a DateTime using the short date format?

Front

$"{date:d}"

Back

Shortcut to debug project in Visual Studio for Mac

Front

F5

Back

Keyboard shortcut for Step Into while debugging in VS Code for macOS

Front

F11

Back

Keyboard shortcut to Save All in VS Code on Mac

Front

Command + Option + S

Back