From 7c55cf76304429c923cec844033319e93c3fa65d Mon Sep 17 00:00:00 2001 From: Donovan Date: Tue, 8 Jul 2025 12:55:00 -0700 Subject: [PATCH 1/2] Fix fibonacci challenge example solution not displayed Added a linebreak between the details tag and the code block. --- docs/csharp/tour-of-csharp/tutorials/list-collection.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/csharp/tour-of-csharp/tutorials/list-collection.md b/docs/csharp/tour-of-csharp/tutorials/list-collection.md index 27b26beb57bc9..56ce004d586ec 100644 --- a/docs/csharp/tour-of-csharp/tutorials/list-collection.md +++ b/docs/csharp/tour-of-csharp/tutorials/list-collection.md @@ -77,6 +77,7 @@ Did you come up with something like this?
+ :::code language="csharp" interactive="try-dotnet-method" source="./snippets/ListCollection/Program.cs" id="Answer"::: With each iteration of the loop, you're taking the last two integers in the list, summing them, and adding that value to the list. The loop repeats until you added 20 items to the list. From 8ced436921fcbcec8b5d428a25b948baf8ab1b28 Mon Sep 17 00:00:00 2001 From: Donovan Date: Wed, 9 Jul 2025 08:47:48 -0700 Subject: [PATCH 2/2] Fix example solutions not displayed Added a linebreak after the details tag and the code block in these pages. --- docs/csharp/tour-of-csharp/tutorials/branches-and-loops.md | 1 + docs/csharp/tour-of-csharp/tutorials/hello-world.md | 1 + docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/csharp/tour-of-csharp/tutorials/branches-and-loops.md b/docs/csharp/tour-of-csharp/tutorials/branches-and-loops.md index e7d50b09975a7..63ef54f90d20f 100644 --- a/docs/csharp/tour-of-csharp/tutorials/branches-and-loops.md +++ b/docs/csharp/tour-of-csharp/tutorials/branches-and-loops.md @@ -141,6 +141,7 @@ Did you come up with something like this?
+ :::code language="csharp" interactive="try-dotnet-method" source="./snippets/BranchesAndLoops/Program.cs" id="Challenge":::
diff --git a/docs/csharp/tour-of-csharp/tutorials/hello-world.md b/docs/csharp/tour-of-csharp/tutorials/hello-world.md index 2170368b820ab..16b21ad0ebcab 100644 --- a/docs/csharp/tour-of-csharp/tutorials/hello-world.md +++ b/docs/csharp/tour-of-csharp/tutorials/hello-world.md @@ -121,6 +121,7 @@ Did you come up with something like the following (expand to see the answer):
+ :::code language="csharp" interactive="try-dotnet-method" source="./snippets/HelloWorld/Program.cs" id="Challenge":::
diff --git a/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md b/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md index 70325527bb6c8..40034751c60bb 100644 --- a/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md +++ b/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md @@ -128,6 +128,7 @@ Once you try it, open the details pane to see how you did:
+ :::code language="csharp" interactive="try-dotnet-method" source="./snippets/NumbersInCsharp/Program.cs" id="Challenge":::