Skip to content

Commit c1e3bd3

Browse files
committed
Merge branch 'main' of github.com:exercism/csharp into exercise/intergalactic-transmission
2 parents 83406dd + 1607b8f commit c1e3bd3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2632
-77
lines changed

bin/add-practice-exercise.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ $projectFile = "${exerciseDir}/${ExerciseName}.csproj"
3838

3939
[xml]$project = Get-Content $projectFile
4040
$project.Project.PropertyGroup.RemoveChild($project.Project.PropertyGroup.SelectSingleNode("//comment()"))
41+
$project.Project.PropertyGroup.RemoveChild($project.Project.PropertyGroup.SelectSingleNode("//RootNamespace"))
4142
$project.Project.RemoveChild($project.Project.ItemGroup[0])
4243
$project.Project.ItemGroup[1].SelectSingleNode("PackageReference[@Include='Microsoft.NET.Test.Sdk']").SetAttribute("Version", "17.12.0")
4344
$project.Project.ItemGroup[1].SelectSingleNode("PackageReference[@Include='xunit.v3']").SetAttribute("Version", "1.1.0")

bin/test.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ function Test-Exercise-Example-Implementations($Exercise) {
153153
}
154154
}
155155

156-
Test-Exercise-Example-Implementations $Exercise
157-
158156
if (!$Exercise) {
159157
Test-Refactoring-Exercise-Default-Implementations
160158
Build-Generators
161159
}
160+
161+
Test-Exercise-Example-Implementations $Exercise

config.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
]
101101
},
102102
{
103-
"slug": "elons-toys",
104-
"name": "Elon's Toys",
103+
"slug": "jedliks-toys",
104+
"name": "Jedlik's Toys",
105105
"uuid": "e01dc85b-0731-4701-9eea-c78fb69ce543",
106106
"concepts": [
107107
"classes"
@@ -2725,6 +2725,20 @@
27252725
"bit-manipulation"
27262726
],
27272727
"difficulty": 6
2728+
},
2729+
{
2730+
"slug": "split-second-stopwatch",
2731+
"name": "Split-Second Stopwatch",
2732+
"uuid": "1d95976d-b3db-4705-b345-0832f226620f",
2733+
"practices": [
2734+
"datetimes",
2735+
"classes"
2736+
],
2737+
"prerequisites": [
2738+
"datetimes",
2739+
"classes"
2740+
],
2741+
"difficulty": 5
27282742
}
27292743
],
27302744
"foregone": [

docs/GENERATORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ The templates are rendered using the [Scriban library](https://github.com/scriba
4848

4949
There are two ways in which the test generator can be run:
5050

51-
1. `bin/generate-tests.ps1`: generate the tests for all exercises that have a generator template
52-
2. `bin/generate-tests.ps1 -e <slug>`: generate the tests for the specified exercise, if it has a generator template
51+
1. `bin/update-tests.ps1`: update the tests for all exercises that have a generator template
52+
2. `bin/update-tests.ps1 -e <slug>`: update the tests for the specified exercise, if it has a generator template

docs/INSTALLATION.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,27 @@
22

33
## Installing .NET
44

5-
The C# track is built on top of the [.NET](https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet) platform, which runs on Windows, Linux and macOS. To build .NET projects, you can use the .NET Command Line Interface (CLI). This CLI is part of the .NET SDK, which you can install by following the [installation instructions](https://dotnet.microsoft.com/download/dotnet/8.0). Note: the C# track requires SDK version 8.0 or greater.
5+
The C# track is built on top of the [.NET](https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet) platform, which runs on Windows, Linux and macOS.
6+
To build .NET projects, you can use the .NET Command Line Interface (CLI).
7+
This CLI is part of the .NET SDK, which you can install by following the [installation instructions](https://dotnet.microsoft.com/download/dotnet/8.0).
8+
Note: the C# track requires SDK version 9.0 or greater.
69

7-
After completing the installation, you can verify if the CLI was installed succesfully by running this command in a terminal:
10+
After completing the installation, you can verify if the CLI was installed successfully by running this command in a terminal:
811

912
```bash
1013
dotnet --version
1114
```
1215

13-
If the output is a version greater than or equal to `8.0.100`, the .NET SDK has been installed succesfully.
16+
If the output is a version greater than or equal to `9.0.100`, the .NET SDK has been installed successfully.
1417

1518
## Using an IDE
1619

17-
If you want a more full-featured editing experience, you probably want to to use an IDE. These are the most popular IDE's that support building .NET projects:
20+
If you want a more full-featured editing experience, you probably want to to use an [IDE or integrated development environment)](https://en.wikipedia.org/wiki/Integrated_development_environment).
21+
These are the most popular IDEs that support building .NET projects:
1822

1923
- [Visual Studio 2022](https://www.visualstudio.com/downloads/)
2024
- [Visual Studio Code](https://code.visualstudio.com/download) with the [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp)
2125
- [Visual Studio for Mac](https://www.visualstudio.com/vs/visual-studio-mac/)
2226
- [Project Rider](https://www.jetbrains.com/rider/download/)
2327

24-
Note: as the .NET project format differs significantly from earlier versions, older IDE's (like Visual Studio 2015) are not supported.
28+
Note: as the .NET project format differs significantly from earlier versions, older IDEs (like Visual Studio 2015) are not supported.

0 commit comments

Comments
 (0)