Skip to content

Commit c645cc1

Browse files
committed
changelog-march-23
1 parent 252cca8 commit c645cc1

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

docs/docs/using-semaphore/languages/dotnet.md

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_position: 9
77

88
Semaphore Ubuntu images include the .NET SDK and PowerShell.
99

10-
This page shows how to inspect installed versions, build .NET projects, run tests, and speed up pipelines with caching.
10+
This page shows how to inspect installed versions, build .NET projects, and run tests.
1111

1212
## Check installed versions
1313

@@ -62,30 +62,8 @@ blocks:
6262
commands:
6363
- checkout
6464
- dotnet restore
65-
- dotnet test --configuration Release --no-restore
66-
```
67-
68-
## Cache NuGet packages
69-
70-
Caching NuGet packages can make pipelines faster.
71-
72-
Set `NUGET_PACKAGES` to a project-local directory, then restore and store the cache:
73-
74-
```bash
75-
export NUGET_PACKAGES=.nuget/packages
76-
checkout
77-
cache restore
78-
dotnet restore
79-
cache store
80-
```
81-
82-
In subsequent jobs, restore the cache before building or testing:
83-
84-
```bash
85-
export NUGET_PACKAGES=.nuget/packages
86-
checkout
87-
cache restore
88-
dotnet build --configuration Release --no-restore
65+
- dotnet build --configuration Release --no-restore
66+
- dotnet test --configuration Release --no-build
8967
```
9068

9169
## Use PowerShell

0 commit comments

Comments
 (0)