Skip to content

Commit 8e51132

Browse files
authored
Delete global.json (#212)
Updates the .NET SDK version used in the build process to version 9.x. Removes the note in the dev notes about the importance of running `dotnet` commands at the `/MarkdownLinkCheckLogParser` folder since `global.json` is no longer being used.
1 parent 03f798f commit 8e51132

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Setup .NET
4141
uses: actions/setup-dotnet@v4
4242
with:
43-
global-json-file: MarkdownLinkCheckLogParser/global.json
43+
dotnet-version: '9.x'
4444
- name: Cache/Restore NuGets
4545
uses: actions/cache@v4
4646
with:

docs/dev-notes/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ mlc-log-parser parse-log `
7373

7474
- There is a set of NuGet packages that are only applied in test projects by using the condition `"'$(IsTestProject)' == 'true'"`. To make this work the `csproj` for the test projects must have the `<IsTestProject>true</IsTestProject>` property defined. Adding this property manually shouldn't be needed because it should be added by the `Microsoft.NET.Test.Sdk` package however there seems to be an issue with this when running tests outside of Visual Studio. See [this GitHub issue](https://github.com/dotnet/sdk/issues/3790#issuecomment-1100773198) for more info.
7575

76-
- When running `dotnet` CLI commands make sure you are at the `/MarkdownLinkCheckLogParser` folder so that the `global.json` is respected. If you don't you might get unexpected results when building the solution. As explained in [global.json overview](https://learn.microsoft.com/en-us/dotnet/core/tools/global-json):
77-
78-
> The .NET SDK looks for a global.json file in the current working directory (which isn't necessarily the same as the project directory) or one of its parent directories.
79-
8076
## Deterministic Build configuration
8177

8278
Following the guide from [Deterministic Builds](https://github.com/clairernovotny/DeterministicBuilds) the `ContinuousIntegrationBuild` setting on the [Directory.Build.props](/MarkdownLinkCheckLogParser/Directory.Build.props) is set to true, if the build is being executed in GitHub actions.

0 commit comments

Comments
 (0)