Skip to content

Commit 9624bf6

Browse files
Lagojamikeland73
andcommitted
Add Fsharp to the docs (#561)
## Summary Add an F# Example ## How was it tested? Localhost + Launchpad --------- Co-authored-by: Mike Landau <[email protected]>
1 parent c88e4df commit 9624bf6

File tree

3 files changed

+35
-7
lines changed

3 files changed

+35
-7
lines changed

docs/app/docs/devbox_examples/languages/csharp.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: C#, F#, and .NET
2+
title: C# and .NET
33
---
44

5-
C#, F# and .NET projects can be easily generated in Devbox by adding the dotnet SDK to your project. You can then create new projects using `dotnet new`
5+
C# and .NET projects can be easily generated in Devbox by adding the dotnet SDK to your project. You can then create new projects using `dotnet new`
66

77
[**Example Repo**](https://github.com/jetpack-io/devbox-examples/tree/main/development/csharp)
88

@@ -25,8 +25,4 @@ Other versions available include:
2525

2626
## Creating a new C# Project
2727

28-
`dotnet new console -lang "C#" -o <name>`
29-
30-
## Creating a new F# Project
31-
32-
`dotnet new console -lang "F#" -o <name>`
28+
`dotnet new console -lang "C#" -o <name>`
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: F# and .NET
3+
---
4+
5+
F# and .NET projects can be easily generated in Devbox by adding the dotnet SDK to your project. You can then create new projects using `dotnet new`
6+
7+
[**Example Repo**](https://github.com/jetpack-io/devbox-examples/tree/main/development/fsharp)
8+
9+
## Adding .NET to your project
10+
11+
`devbox add dotnet-sdk`, or add the following to your `devbox.json`:
12+
13+
```json
14+
"packages": [
15+
"dotnet-sdk"
16+
],
17+
```
18+
This will install .NET SDK 6.0
19+
20+
Other versions available include:
21+
22+
* dotnet-sdk_7 (version 7.0)
23+
* dotnet-sdk_5 (version 5.0)
24+
* dotnet-sdk_3 (version 3.1)
25+
26+
## Creating a new F# Project
27+
28+
`dotnet new console -lang "F#" -o <name>`

docs/app/sidebars.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ const sidebars = {
162162
type: 'doc',
163163
id: 'devbox_examples/languages/elixir'
164164
},
165+
{
166+
type: 'doc',
167+
id: 'devbox_examples/languages/fsharp'
168+
},
165169
{
166170
type: 'doc',
167171
id: 'devbox_examples/languages/go'

0 commit comments

Comments
 (0)