Skip to content

Commit 13bc965

Browse files
committed
docs(posts): standardize fenced code block languages
✨ Normalize fenced code block languages across multiple blog posts to improve syntax highlighting and accuracy on the site 📁 Modified: _posts/2018-12-20-using-system-commandline-to-build-a-command-line-application-and-nuget-config.md, _posts/2019-01-09-ubuntu-18.10-netcore-sdk-2.2-ubuntu-package-not-found.md, _posts/2019-03-11-host-aspnetcore-on-iis.md, _posts/2019-05-13-imported-project-microsoft-common-props-not-found.md, _posts/2019-12-07-unable-to-locate-package-dotnet-sdk-3.1.md, _posts/2019-12-10-HTTP-Error-500.30-ANCM-In-Process-Start-Failure.md, _posts/2020-01-10-err_http2_inadequate_transport_security.md, _posts/2020-01-15-how-to-remove-the-net-core-runtime-and-sdk.md, _posts/2020-01-20- mysqlexception-0x80004005-the-command-timeout-expired-before-the-operation-completed.md, _posts/2020-01-22-links-do-not-open-google-chrome.md, _posts/2020-01-28-navigate-into-newly-created-directory.md, _posts/2020-01-31-event-viewer-logs-with-net-core-workers-as-windows-services.md, _posts/2020-02-05-error-2006-hy000-mysql-server-has-gone-away.md, _posts/2020-02-21-assembly-with-same-name-is-already-loaded.md, _posts/2020-03-06-3008-a-configuration-error-has-occurred.md, _posts/2020-03-06-localhost-https-subdomains-with-a-kestrel-ssl-certificate.md, _posts/2020-03-17-aspnetcore-312-windows-hosting-bundle-caused-503-services-unavailable.md, _posts/2020-04-25-install-dotnetcore-on-ubuntu-focal-fossa.md, _posts/2020-05-17-blazor-hosted-on-vercel-aka-zeit-now.md, _posts/2020-05-18-deploy-aspnet-core-web-api-to-fly-via-docker.md, _posts/2020-05-28-instagram-basic-display-api.md, _posts/2020-06-07-archive-all-bookmarks-using-the-pocket-developer-api.md, _posts/2020-06-11-move-an-ubuntu-window-to-another-workspace.md, _posts/2020-09-30-access-denied-for-user-root-localhost.md, _posts/2020-10-02-spotlight-stops-indexing-applications.md, _posts/2020-10-05-creating-a.net-core-global-tool.md, _posts/2020-11-13-how-to-migrate-from-dotnet-core-31-to-dotnet-core-50.md, _posts/2020-12-04-dllnotfoundexception-unable-to-load-shared-library-libgdiplus-or-one-of-its-dependencies.md 🔧 Replaced many 'powershell' fences with 'bash' for shell snippets, used 'text' for plain log/output blocks, and adjusted a few fences to ensure proper rendering 💡 Improves readability and correctness of code examples across the blog
1 parent 03c12ca commit 13bc965

File tree

28 files changed

+75
-71
lines changed

28 files changed

+75
-71
lines changed

_posts/2018-12-20-using-system-commandline-to-build-a-command-line-application-and-nuget-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Program
5656
```
5757

5858

59-
```powershell
59+
```bash
6060
dotnet run -- --int-option 123
6161
The value for --int-option is: 0
6262
The value for --bool-option is: False

_posts/2019-01-09-ubuntu-18.10-netcore-sdk-2.2-ubuntu-package-not-found.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ I have just upgraded my laptop from Ubuntu 18.04 to 18.10 so that I could check
1717

1818
However despite following the instructions from here: <https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-2.2.102>
1919

20-
```powershell
20+
```bash
2121
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
2222
sudo dpkg -i packages-microsoft-prod.deb
2323

@@ -31,7 +31,7 @@ I would then receive a package not found error on the ```sudo apt-get install do
3131

3232
The fix seems to be to copy these manually.
3333

34-
```powershell
34+
```bash
3535
wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list
3636
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
3737
sudo apt update

_posts/2019-03-11-host-aspnetcore-on-iis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ First I published a last known good version of my application by creating a new
1818

1919
The idea being I can deploy from this branch while I investigated and once fixed I could delete the branch.
2020

21-
```powershell
21+
```bash
2222
git reset e64c51bf1c3bdde753ff2d8fd8b18d4d902b8b5b --hard
2323
```
2424

_posts/2019-05-13-imported-project-microsoft-common-props-not-found.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ There was no such problem on macOS or Windows however as I like to write code on
2626

2727
It's a bug that I [raised over on GitHub](https://github.com/OmniSharp/omnisharp-vscode/issues/3049) and while the full logs and environment details are over there in more detail, for brevity I will show what I believe is the main problem here:
2828

29-
```powershell
29+
```text
3030
[warn]: OmniSharp.MSBuild.ProjectManager
3131
Failed to load project file '/home/solrevdev/Code/scratch/testconsole/testconsole.csproj'.
3232
/home/solrevdev/Code/scratch/testconsole/testconsole.csproj(1,1)
@@ -41,7 +41,7 @@ That was to re-install or update my version of Mono from the official [download
4141

4242
The instructions for doing this I borrowed and adapted are from there and are as follows:
4343

44-
```powershell
44+
```bash
4545
sudo apt install gnupg ca-certificates
4646
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
4747
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

_posts/2019-12-07-unable-to-locate-package-dotnet-sdk-3.1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ However, for Linux each release of [dotnetcore](https://dotnet.microsoft.com/dow
1919

2020
If you follow the [instructions](https://docs.microsoft.com/en-gb/dotnet/core/install/linux-package-manager-ubuntu-1904]) from Microsoft you will get the following error message:
2121

22-
```powershell
22+
```text
2323
Unable to locate package dotnet-sdk-3.1
2424
```
2525

2626
The issue is that page targets Ubuntu version 19.04 and I am running Ubuntu version 19.10 (Eoan Ermine).
2727

2828
So, If you are me from the future wanting to know how to get the latest version installed here is what you need to do:
2929

30-
```powershell
30+
```bash
3131
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
3232
sudo apt-add-repository https://packages.microsoft.com/ubuntu/19.10/prod
3333
sudo apt-get update

_posts/2019-12-10-HTTP-Error-500.30-ANCM-In-Process-Start-Failure.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ I host an [aspnetcore](https://dot.net/) website on a Windows Server 2012 R2 run
1616

1717
However, the past two nights the server has restarted unexpectedly leaving the website down with the following error message:
1818

19-
```powershell
19+
```text
2020
HTTP Error 500.30 - ANCM In-Process Start Failure
2121
```
2222

2323
The first night a simple `IISRESET` command was all that was needed to get the site running again, however, last night it did the same thing.
2424

2525
Looking at `Event Viewer` I noticed the following:
2626

27-
```powershell
27+
```text
2828
Application '/LM/W3SVC/2/ROOT' with physical root 'C:\Path\To\Website' failed to load clr and managed application. Managed server didn't initialize after 120000 ms.
2929
```
3030

3131
So, doing some googling I came across an article suggesting that [An x86 app is deployed but the app pool isn't enabled for 32-bit app](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/azure-iis-errors-reference?view=aspnetcore-3.1#an-x86-app-is-deployed-but-the-app-pool-isnt-enabled-for-32-bit-apps).
3232

3333
This suggests that:
3434

35-
```powershell
35+
```text
3636
For an x86 framework-dependent deployment (<PlatformTarget>x86</PlatformTarget>), enable the IIS app pool for 32-bit apps. In IIS Manager, open the app pool's Advanced Settings and set Enable 32-Bit Applications to True.
3737
```
3838

_posts/2020-01-10-err_http2_inadequate_transport_security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This site worked fine elsewhere so to try and narrow down the problem I created
2222

2323
After some googling, I tried to reset the servers self-signed SSL certificate by using the following closing the browser in between but that had no effect:
2424

25-
```powershell
25+
```bash
2626
dotnet dev-certs https --clean
2727
dotnet dev-certs https --trust
2828
```

_posts/2020-01-15-how-to-remove-the-net-core-runtime-and-sdk.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ It seemed like every major and minor version from 1.0 to the latest 3.1 and many
1515

1616
To see if your machine is the same try this command in your terminal:
1717

18-
```powershell
18+
```bash
1919
dotnet --list-sdks
2020
```
2121

@@ -25,7 +25,7 @@ There is also a [tool to help uninstall these versions](https://docs.microsoft.c
2525

2626
So I downloaded and installed the tool and ran a command to see list what could be uninstalled for me.
2727

28-
```powershell
28+
```bash
2929
dotnet-core-uninstall list
3030
```
3131

@@ -37,7 +37,7 @@ So I began to uninstall the undeeded and safe to remove dotnetcore SDK's on the
3737

3838
I started by removing all preview versions of the dotnetcore sdk.
3939

40-
```powershell
40+
```bash
4141
dotnet-core-uninstall remove --sdk --all-previews
4242
```
4343

@@ -46,13 +46,13 @@ dotnet-core-uninstall remove --sdk --all-previews
4646

4747
I then re-ran the tool to ensure that these were uninstalled and to see what versions were left.
4848

49-
```powershell
49+
```bash
5050
dotnet-core-uninstall list
5151
```
5252

5353
Then I built and ran my final command to remove the older versions that were not needed by Visual Studio.
5454

55-
```powershell
55+
```bash
5656
dotnet-core-uninstall remove --sdk 2.2.300 2.2.102 2.2.100 2.1.801 2.1.701 2.1.700 2.1.604 2.1.602 2.1.601 2.1.600 2.1.511 2.1.509 2.1.508 2.1.507 2.1.505 2.1.504 2.1.503 2.1.502 2.1.500 2.1.403 2.1.402 2.1.401 2.1.400 2.1.302 2.1.301 2.1.300 2.1.201 2.1.200 2.1.104 2.1.103 2.1.102 2.1.101 2.1.100 2.1.4 2.1.3 2.1.2 1.1.7
5757
```
5858

@@ -61,7 +61,7 @@ dotnet-core-uninstall remove --sdk 2.2.300 2.2.102 2.2.100 2.1.801 2.1.701 2.1.7
6161

6262
One final check...
6363

64-
```powershell
64+
```bash
6565
dotnet-core-uninstall list
6666
```
6767

_posts/2020-01-20- mysqlexception-0x80004005-the-command-timeout-expired-before-the-operation-completed.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ I would get either:
3131

3232
`MySqlException (0x80004005): The Command Timeout expired before the operation completed`
3333

34-
```powershell
34+
```text
3535
[MySqlException (0x80004005): The Command Timeout expired before the operation completed.]
3636
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
3737
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
@@ -55,7 +55,7 @@ or:
5555

5656
`A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond`
5757

58-
```powershell
58+
```text
5959
[SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond]
6060
System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) +94
6161
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +130

_posts/2020-01-22-links-do-not-open-google-chrome.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The fix before was to re-install Google Chrome but today I found this quick solu
2020

2121
In Chrome's URL bar enter this...
2222

23-
```powershell
23+
```
2424
chrome://restart
2525
```
2626

0 commit comments

Comments
 (0)